Overview
Returns the shared Socket.io socket instance and its connection state fromChatProvider. Most applications will only need the connected flag for displaying connection status UI. Direct socket access is available for advanced use cases.
Requires
ChatProvider in the component tree.Usage Example
Returns
The underlying Socket.io socket instance.
null when no user is authenticated or before the connection is established. For most use cases, prefer the higher-level chat hooks over accessing the socket directly.true when the socket is connected and ready to receive events.Notes
- For integration guidance, see Chat: Real-time.

