Allows listening to events published on the cluster.
Any of the events defined in IClusterEvents.
One of the events defined in IClusterEvents.
The callback when the event is received. Listeners' payload are defined in IClusterEvents.
Get an array of opened key-value databases.
Optional
strategy: ((item) => boolean)The strategy to use to filter the key-value databases.
Get an array of published local media streams.
Optional
strategy: ((item) => boolean)The strategy to use to filter the media streams.
Get an array of opened object store buckets.
Optional
strategy: ((item) => boolean)The strategy to use to filter the data streams.
Get an array of opened pub/sub topics.
Optional
strategy: ((item) => boolean)The strategy to use to filter the topics.
Get an array of published remote media streams.
Optional
strategy: ((item) => boolean)The strategy to use to filter the media streams.
Unsubscribe from all events on the cluster
Unsubscribe to an event.
The event to unsubscribe from.
Unsubscribe from all events, or a specific list of events.
The list of events to unsubscribe from.
Open a key-value database.
The name of the key-value database.
The layout of the key-value database.
A promise that resolves with the key-value database.
SDKClientErrorCodes.KeyValueDatabaseAlreadyExists if the key-value database is already open.
SDKClientErrorCodes.KeyValueDatabaseInvalidLayout if the layout is invalid.
SDKClientErrorCodes.KeyValueDatabaseNameNotString if the name is not a string.
Open a object store bucket.
The name of the Object Store bucket.
A promise that resolves with the data stream.
SDKClientErrorCodes.ObjectStoreAlreadyExists if the data stream is already open.
SDKClientErrorCodes.ObjectStoreNameNotString if the name is not a string.
Open a pub/sub topic.
The name of the PubSub Topic.
The pub/sub topic.
SDKClientErrorCodes.PubSubTopicAlreadyExists if the topic already exists
SDKClientErrorCodes.PubSubTopicNameNotString if the name is not a string.
Publish a local dynamic media stream. Like a local media stream but can be modified after creation.
The label of the media stream.
The media source to publish.
The local dynamic media stream.
SDKClientErrorCodes.LocalMediaStreamAlreadyExists if the media stream is already published.
Publish a local media stream.
The label of the media stream.
The media source to publish.
The local media stream.
SDKClientErrorCodes.LocalMediaStreamAlreadyExists if the media stream is already published.
Generated using TypeDoc
The cluster interface.