Class WebRTCWebSocketPeer
This class is NOT a required component for using WebRTC. It is a convenience class provided to assist when using a web socket server for the WebRTC signalling.
Inheritance
System.Object
WebSocketSharp.Server.WebSocketBehavior
WebRTCWebSocketPeer
Implements
WebSocketSharp.Server.IWebSocketSession
Inherited Members
WebSocketSharp.Server.WebSocketBehavior.Close()
WebSocketSharp.Server.WebSocketBehavior.Close(System.UInt16, System.String)
WebSocketSharp.Server.WebSocketBehavior.Close(WebSocketSharp.CloseStatusCode, System.String)
WebSocketSharp.Server.WebSocketBehavior.CloseAsync()
WebSocketSharp.Server.WebSocketBehavior.CloseAsync(System.UInt16, System.String)
WebSocketSharp.Server.WebSocketBehavior.CloseAsync(WebSocketSharp.CloseStatusCode, System.String)
WebSocketSharp.Server.WebSocketBehavior.Error(System.String, System.Exception)
WebSocketSharp.Server.WebSocketBehavior.OnClose(WebSocketSharp.CloseEventArgs)
WebSocketSharp.Server.WebSocketBehavior.OnError(WebSocketSharp.ErrorEventArgs)
WebSocketSharp.Server.WebSocketBehavior.Send(System.Byte[])
WebSocketSharp.Server.WebSocketBehavior.Send(System.IO.FileInfo)
WebSocketSharp.Server.WebSocketBehavior.Send(System.String)
WebSocketSharp.Server.WebSocketBehavior.Send(System.IO.Stream, System.Int32)
WebSocketSharp.Server.WebSocketBehavior.SendAsync(System.Byte[], System.Action<System.Boolean>)
WebSocketSharp.Server.WebSocketBehavior.SendAsync(System.IO.FileInfo, System.Action<System.Boolean>)
WebSocketSharp.Server.WebSocketBehavior.SendAsync(System.String, System.Action<System.Boolean>)
WebSocketSharp.Server.WebSocketBehavior.SendAsync(System.IO.Stream, System.Int32, System.Action<System.Boolean>)
WebSocketSharp.Server.WebSocketBehavior.Headers
WebSocketSharp.Server.WebSocketBehavior.Log
WebSocketSharp.Server.WebSocketBehavior.QueryString
WebSocketSharp.Server.WebSocketBehavior.Sessions
WebSocketSharp.Server.WebSocketBehavior.ConnectionState
WebSocketSharp.Server.WebSocketBehavior.Context
WebSocketSharp.Server.WebSocketBehavior.CookiesValidator
WebSocketSharp.Server.WebSocketBehavior.EmitOnPing
WebSocketSharp.Server.WebSocketBehavior.ID
WebSocketSharp.Server.WebSocketBehavior.IgnoreExtensions
WebSocketSharp.Server.WebSocketBehavior.OriginValidator
WebSocketSharp.Server.WebSocketBehavior.Protocol
WebSocketSharp.Server.WebSocketBehavior.StartTime
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class WebRTCWebSocketPeer : WebSocketBehavior, IWebSocketSession
Constructors
| Improve this Doc View SourceWebRTCWebSocketPeer()
Declaration
public WebRTCWebSocketPeer()
Fields
| Improve this Doc View SourceCreatePeerConnection
Declaration
public Func<Task<RTCPeerConnection>> CreatePeerConnection
Field Value
Type | Description |
---|---|
System.Func<System.Threading.Tasks.Task<RTCPeerConnection>> |
Properties
| Improve this Doc View SourceAnswerOptions
Optional property to allow the peer connection SDP answer options to be set.
Declaration
public RTCAnswerOptions AnswerOptions { get; set; }
Property Value
Type | Description |
---|---|
RTCAnswerOptions |
FilterRemoteICECandidates
Optional filter that can be applied to remote ICE candidates. The filter is primarily intended for use in testing. In real application scenarios it's normally desirable to accept all remote ICE candidates.
Declaration
public Func<RTCIceCandidateInit, bool> FilterRemoteICECandidates { get; set; }
Property Value
Type | Description |
---|---|
System.Func<RTCIceCandidateInit, System.Boolean> |
OfferOptions
Optional property to allow the peer connection SDP offer options to be set.
Declaration
public RTCOfferOptions OfferOptions { get; set; }
Property Value
Type | Description |
---|---|
RTCOfferOptions |
RTCPeerConnection
Declaration
public RTCPeerConnection RTCPeerConnection { get; }
Property Value
Type | Description |
---|---|
RTCPeerConnection |
Methods
| Improve this Doc View SourceOnMessage(MessageEventArgs)
Declaration
protected override async void OnMessage(MessageEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
WebSocketSharp.MessageEventArgs | e |
Overrides
WebSocketSharp.Server.WebSocketBehavior.OnMessage(WebSocketSharp.MessageEventArgs)
|
Improve this Doc
View Source
OnOpen()
Declaration
protected override async void OnOpen()
Overrides
WebSocketSharp.Server.WebSocketBehavior.OnOpen()
Implements
WebSocketSharp.Server.IWebSocketSession