Receive WebSocket client status.

Example

import { useWsStatus } from "@orderly.network/hooks";

const status = useWsStatus();

useEffect(() => {
  if (status === WsNetworkStatus.Connected) {
    // do something
  }
}, [status]);