Custom React hook for managing a Socket.IO client connection. It handles connection, disconnection, and room joining for a given eventId.
The ID of the event to join. If null, no connection is attempted.
An object containing the Socket.IO client instance and the connection status.
Custom React hook for managing a Socket.IO client connection. It handles connection, disconnection, and room joining for a given eventId.