RealtimeChannel
Represents a realtime channel
Types
Properties
Functions
Sends a message to everyone who joined the channel. Can be used even if you aren't connected to the channel.
Sends a message to everyone who joined the channel. Can be used even if you aren't connected to the channel.
Sends a message to everyone who joined the channel. Can be used even if you aren't connected to the channel. Requires Realtime.Config.vsn to be set to RealtimeProtocolVersion.V2
Broadcasts can be messages sent by other clients within the same channel under a specific event.
Broadcasts can be messages sent by other clients within the same channel under a specific event.
Returns the current presences as a typed list. This is a snapshot of all currently tracked presences in the channel, deserialized as Data.
Sends a broadcast message explicitly via REST API.
Sends a broadcast message explicitly via REST API.
Listen for postgres changes in a channel.
Non-inline variant of postgresChangeFlow for implementation and mocking purposes
This function retrieves the initial data from the table and then listens for changes. It automatically handles inserts, updates and deletes.
This function retrieves the initial data for a single value and then listens for changes on that value. It automatically handles updates and closes the flow on the delete event.
Listen for clients joining / leaving the channel using presences
Listens for presence changes and caches the presences based on their keys. This function automatically handles joins and leaves.
Unsubscribes from the channel
Updates the JWT token for this channel