Table of Contents

Class SocketResponsePayload

Namespace
Supabase.Realtime.Socket
Assembly
Supabase.Realtime.dll

A socket response payload.

public class SocketResponsePayload
Inheritance
SocketResponsePayload
Derived
Inherited Members

Properties

Channel

The channel (system)

[JsonProperty("channel")]
public string? Channel { get; set; }

Property Value

string

Columns

Displays Column information from the Database.

Will always be an array but can be empty

[JsonProperty("columns")]
public List<object>? Columns { get; set; }

Property Value

List<object>

CommitTimestamp

The timestamp of the commit referenced.

Will either be a string or null

[JsonProperty("commit_timestamp")]
public DateTimeOffset? CommitTimestamp { get; set; }

Property Value

DateTimeOffset?

Errors

Either null or an array of errors. See: https://github.com/supabase/walrus/#error-states

[JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
public List<string>? Errors { get; set; }

Property Value

List<string>

Extension

The extension (system)

[JsonProperty("extension")]
public string? Extension { get; set; }

Property Value

string

Joins

Presence joins (parsed later)

[JsonProperty("joins")]
public object? Joins { get; set; }

Property Value

object

Leaves

Presence leaves (parsed later)

[JsonProperty("leaves")]
public object? Leaves { get; set; }

Property Value

object

Message

The message (system)

[JsonProperty("message")]
public string? Message { get; set; }

Property Value

string

OldRecord

The previous state of the referenced record.

Will always be an object but can be empty.

[JsonProperty("old_record")]
public object? OldRecord { get; set; }

Property Value

object

Record

The record referenced.

Will always be an object but can be empty.

[JsonProperty("record")]
public object? Record { get; set; }

Property Value

object

Response

The unparsed response object

[JsonProperty("response")]
public object? Response { get; set; }

Property Value

object

Schema

The Schema affected.

[JsonProperty("schema")]
public string? Schema { get; set; }

Property Value

string

Status

Status of response

[JsonProperty("status")]
public string? Status { get; set; }

Property Value

string

Table

The Table affected.

[JsonProperty("table")]
public string? Table { get; set; }

Property Value

string

Type

The parsed type.

[JsonIgnore]
public Constants.EventType Type { get; }

Property Value

Constants.EventType

_type

The action type performed (INSERT, UPDATE, DELETE, etc.)

[JsonProperty("type")]
public string? _type { get; set; }

Property Value

string