The unique identifier for the NonLocalStorage instance.
Either a callback for messages or options object.
Optionaloptions: UseMessagingOptionsGeneral options (only when second param is onMessage).
A tuple containing:
React hook for managing real-time messaging and presence using NonLocalStorage.
Handles connection state, message sending, joining/leaving presence, and error reporting. Automatically subscribes to presence and message events, and updates the connected users list.
The unique identifier for the NonLocalStorage instance.
General options (only when second param is onMessage).
A tuple containing:
React hook for managing real-time messaging and presence using NonLocalStorage.
Handles connection state, message sending, joining/leaving presence, and error reporting. Automatically subscribes to presence and message events, and updates the connected users list.