Interface UseRoomParams

The parameters for the useRoom hook.

interface UseRoomParams {
    onConnectionStatusChange?: ((change: ConnectionStatusChange) => void);
    onStatusChange?: ((change: RoomStatusChange) => void);
}

Properties

onConnectionStatusChange?: ((change: ConnectionStatusChange) => void)

Callback for when the connection status changes. The listener is removed when the component unmounts.

Type declaration

onStatusChange?: ((change: RoomStatusChange) => void)

Callback for when the room status changes. The listener is removed when the component unmounts.

Type declaration