Tracks the WebSocket connection to the signaling server. Use isConnecting
to show a loading indicator during initial connection, and error to display
connection failure messages.
if (isConnecting) return<ActivityIndicator/>; if (error) return<Textstyle={styles.error}>{error}</Text>; if (!isConnected) return<Text>Disconnected</Text>; return<Text>Connected</Text>; }
Connection state for the Hiyve client.
Remarks
Tracks the WebSocket connection to the signaling server. Use
isConnectingto show a loading indicator during initial connection, anderrorto display connection failure messages.Example
Connection status indicator: