Class WebRtcStandaloneSignalingServer
Represents a standalone WebRTC signalling server that provides room-based peer-to-peer communication without native WebRTC media processing.
public class WebRtcStandaloneSignalingServer
- Inheritance
-
WebRtcStandaloneSignalingServer
- Inherited Members
Constructors
WebRtcStandaloneSignalingServer(int, int, string, WebRtcServerParameters)
Initializes a new instance of the WebRtcStandaloneSignalingServer class with the specified HTTP ports, path, and server parameters.
public WebRtcStandaloneSignalingServer(int httpPort = 80, int httpsPort = 443, string path = "/", WebRtcServerParameters parameters = null)
Parameters
httpPortintThe HTTP port number. Defaults to
80.httpsPortintThe HTTPS port number. Defaults to
443.pathstringThe HTTP handler path. Defaults to "/".
parametersWebRtcServerParametersThe server parameters, or
nullto use default parameters.
WebRtcStandaloneSignalingServer(HttpServer, string, WebRtcServerParameters)
Initializes a new instance of the WebRtcStandaloneSignalingServer class with the specified existing HTTP server, path, and server parameters.
public WebRtcStandaloneSignalingServer(HttpServer httpServer, string path, WebRtcServerParameters parameters)
Parameters
httpServerHttpServerThe existing HTTP server to register the handler on.
pathstringThe HTTP handler path.
parametersWebRtcServerParametersThe server parameters, or
nullto use default parameters.
Methods
Start()
Starts the signalling server and begins processing requests.
public void Start()
Stop()
Stops the signalling server and releases all resources.
public void Stop()
Events
Authorize
Occurs when a new peer connection requires authorization.
public event EventHandler<WebRtcStandaloneSignalingServer.AuthorizeEventArgs> Authorize