Async function that returns a room token and server connection info.
Called once each time the store needs to establish a new connection (on HiyveStoreRN.createRoom or HiyveStoreRN.joinRoom).
An object containing:
roomToken -- authentication token for the roomserverRegionUrl -- URL of the regional media serverserverRegion -- optional region identifierregions -- optional list of available regionsOptionalonCallback invoked whenever a client-level error occurs.
Use this to display error alerts, send to a crash reporting service, or trigger recovery logic in your application.
The error that occurred
OptionalstorageOptional storage adapter for persisting device preferences across sessions.
When provided, selected audio/video device choices can be saved and restored automatically on subsequent connections.
Configuration options for creating a HiyveStoreRN instance.
Example