Config

class Config : MainConfig, CustomSerializationConfig, AuthDependentPluginConfig(source)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var accessToken: suspend SupabaseClient.() -> String?

A custom access token provider. If this is set, the SupabaseClient will not be used to resolve the access token.

Link copied to clipboard

Whether to connect to the websocket when subscribing to a channel. Defaults to true

Link copied to clipboard
Link copied to clipboard

Delay before disconnecting from the realtime socket after the last channel was removed. If null, it defaults to 2*heartbeatInterval

Link copied to clipboard

Whether to disconnect from the websocket when there are no more subscriptions. Defaults to true

Link copied to clipboard

Whether to disconnect from the websocket when the session is lost. Defaults to true

Link copied to clipboard

The interval between heartbeat messages. Defaults to 15 seconds

Link copied to clipboard
Link copied to clipboard
var loggingFactory: SupabaseLoggingProcessorFactory?
Link copied to clipboard
var logLevel: LogLevel?
Link copied to clipboard

The maximum number of times a channel will try to rejoin after an error before giving up. Defaults to 5

Link copied to clipboard

The delay between reconnect attempts. Defaults to 7 seconds

Link copied to clipboard

The interval between channel rejoin attempts

Link copied to clipboard
open override var requireValidSession: Boolean
Link copied to clipboard

Whether to use wss or ws. Defaults to SupabaseClient.useHTTPS when null

Link copied to clipboard
open override var serializer: SupabaseSerializer?

A serializer used for serializing/deserializing objects e.g. in PresenceAction.decodeJoinsAs or RealtimeChannel.broadcast. Defaults to KotlinXSerializer

Link copied to clipboard

The realtime protocol version. RealtimeProtocolVersion.V2 supports binary payloads and is more efficient.

Link copied to clipboard
var websocketConfig: WebSockets.Config.() -> Unit

Custom configuration for the Ktor Websocket Client. This only applies if Realtime.Config.websocketFactory is null.

Link copied to clipboard

A custom websocket factory. If this is set, the websocketConfig will be ignored