Receive WebSocket client status.
import { useWsStatus } from "@orderly.network/hooks"; const status = useWsStatus(); useEffect(() => { if (status === WsNetworkStatus.Connected) { // do something } }, [status]);