Class ClientOptions
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
Headers
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
Encode
The function to encode outgoing messages. Defaults to JSON
public Action<object, Action<string>>? Encode { get; set; }
Property Value
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
PostgrestClient
Optional Postgrest client. When set, every model returned by
Model<TModel>() and
OldModel<TModel> has this client's context (BaseUrl, RequestClientOptions, headers) attached to
it via Attach<T>() - enabling Update/Delete to be called directly on a model
received from Realtime.
Left null, Realtime remains usable standalone: models still deserialize normally, just without client context. The Supabase umbrella client wires this automatically to its own Postgrest client.
public IPostgrestClient? PostgrestClient { get; set; }
Property Value
- IPostgrestClient
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; }