Config
Properties
A custom access token provider. If this is set, the SupabaseClient will not be used to resolve the access token.
Whether to connect to the websocket when subscribing to a channel. Defaults to true
Delay before disconnecting from the realtime socket after the last channel was removed. If null, it defaults to 2*heartbeatInterval
Whether to disconnect from the websocket when there are no more subscriptions. Defaults to true
Whether to disconnect from the websocket when the session is lost. Defaults to true
The interval between heartbeat messages. Defaults to 15 seconds
The maximum number of times a channel will try to rejoin after an error before giving up. Defaults to 5
The delay between reconnect attempts. Defaults to 7 seconds
The interval between channel rejoin attempts
A serializer used for serializing/deserializing objects e.g. in PresenceAction.decodeJoinsAs or RealtimeChannel.broadcast. Defaults to KotlinXSerializer
The realtime protocol version. RealtimeProtocolVersion.V2 supports binary payloads and is more efficient.
Custom configuration for the Ktor Websocket Client. This only applies if Realtime.Config.websocketFactory is null.
A custom websocket factory. If this is set, the websocketConfig will be ignored