Const
Provides a BaseRealtime instance with the ability to interact with a channel’s presence set.
To create a client that includes this plugin, include it in the client options that you pass to the constructor:
import { BaseRealtime, WebSocketTransport, FetchRequest, RealtimePresence } from 'ably/modular';const realtime = new BaseRealtime({ ...options, plugins: { WebSocketTransport, FetchRequest, RealtimePresence } }); Copy
import { BaseRealtime, WebSocketTransport, FetchRequest, RealtimePresence } from 'ably/modular';const realtime = new BaseRealtime({ ...options, plugins: { WebSocketTransport, FetchRequest, RealtimePresence } });
If you do not provide this plugin, then attempting to access a channel’s presence property will cause a runtime error.
Generated using TypeDoc
Provides a BaseRealtime instance with the ability to interact with a channel’s presence set.
To create a client that includes this plugin, include it in the client options that you pass to the constructor:
If you do not provide this plugin, then attempting to access a channel’s presence property will cause a runtime error.