useIsConnected
Returns a promise that resolves when transport is connected. Resolves immediately if already connected.
()
None
=>
boolean
Usage
const isConnected = moopsyClient.transport.useIsConnected();
if(isConnected !== true) {
return <div>Connecting...</div>;
}