minca
ApiReactFunctions

Function: useNetwork()

function useNetwork(): MeshStatus;

Defined in: packages/react/src/use-network.ts:14

The node's relays and connections, across every space: which relays are open, which are waiting to try again and why, and the peers connected or being connected to. Changes as they do; useNode().network.reconnect() tries a waiting relay now.

Returns

MeshStatus

On this page