Class PeerMessage
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
Candidate
Gets or sets the ICE candidate string.
[JsonPropertyName("candidate")]
public string Candidate { get; set; }
Property Value
MessageType
Gets or sets the message type (e.g., "offer", "answer").
[JsonPropertyName("type")]
public string MessageType { get; set; }
Property Value
Sdp
Gets or sets the SDP (Session Description Protocol) payload.
[JsonPropertyName("sdp")]
public string Sdp { get; set; }
Property Value
Methods
Deserialize(string)
Deserializes a JSON string into a PeerMessage instance.
public static PeerMessage Deserialize(string json)
Parameters
jsonstringThe JSON string to deserialize.
Returns
- PeerMessage
The deserialized PeerMessage, or
nullif deserialization fails.