Class ClientOptions | realtime-csharp (original) (raw)
Namespace
Assembly
Supabase.Realtime.dll
Options used when initializing a Client
public class ClientOptions
Inheritance
ClientOptions
Inherited Members
Fields
DateTimeStyles
Datetime Style for JSON Deserialization of Models
public readonly DateTimeStyles DateTimeStyles
Field Value
Request headers to be appended to the connection string.
public readonly Dictionary<string, string> Headers
Field Value
Parameters
The optional params to pass when connecting
public SocketOptionsParameters Parameters
Field Value
Properties
DateTimeFormat
Datetime format for JSON Deserialization of Models (Postgrest style)
public string DateTimeFormat { get; set; }
Property Value
Decode
The function to decode incoming messages.
public Action<string, Action<SocketResponse?>>? Decode { get; set; }
Property Value
Action<string, Action<SocketResponse>>
Encode
The function to encode outgoing messages. Defaults to JSON
public Action<object, Action<string>>? Encode { get; set; }
Property Value
Action<object, Action<string>>
EventsPerSecond
@todo Presently unused: Limit the number of events that can be sent per second.
public int EventsPerSecond { get; set; }
Property Value
HeartbeatInterval
The interval to send a heartbeat message
public TimeSpan HeartbeatInterval { get; set; }
Property Value
ReconnectAfterInterval
The interval to reconnect
public Func<int, TimeSpan> ReconnectAfterInterval { get; set; }
Property Value
Timeout
The default timeout in milliseconds to trigger push timeouts.
public TimeSpan Timeout { get; set; }
Property Value
Transport
The Websocket Transport, for example WebSocket.
public string Transport { get; set; }