> ## Documentation Index
> Fetch the complete documentation index at: https://orderly.network/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# useWsStatus

> Hook to monitor the current WebSocket connection status.

Receive WebSocket client status.

## Example

```ts theme={null}
import { useWsStatus } from "@orderly.network/hooks";

const status = useWsStatus();

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