Table of Contents

Class PeerMessage

Namespace
VAST.WebRTC
Assembly
VAST.WebRTC.dll

Represents a WebRTC peer-to-peer signaling message containing SDP or ICE candidate data.

public class PeerMessage
Inheritance
PeerMessage
Inherited Members

Constructors

PeerMessage()

public PeerMessage()

Properties

Action

Gets or sets the action associated with this message.

[JsonPropertyName("action")]
public string Action { get; set; }

Property Value

string

Candidate

Gets or sets the ICE candidate string.

[JsonPropertyName("candidate")]
public string Candidate { get; set; }

Property Value

string

MessageType

Gets or sets the message type (e.g., "offer", "answer").

[JsonPropertyName("type")]
public string MessageType { get; set; }

Property Value

string

Sdp

Gets or sets the SDP (Session Description Protocol) payload.

[JsonPropertyName("sdp")]
public string Sdp { get; set; }

Property Value

string

Methods

Deserialize(string)

Deserializes a JSON string into a PeerMessage instance.

public static PeerMessage Deserialize(string json)

Parameters

json string

The JSON string to deserialize.

Returns

PeerMessage

The deserialized PeerMessage, or null if deserialization fails.