realtime()
realtime(): RealtimeClient
Get the Realtime client for the current app. Repeated calls on the same app return the same instance.
Sign-in, token refresh, and sign-out are synced to Realtime automatically. You usually do not need to call setAuth() yourself.
Parameters
No parameters
Response
RealtimeClient
RealtimeClient
Realtime client reused for the same app instance.
Example
const realtime = app.realtime();