Table of Contents

Class WebRtcStandaloneSignalingServer

Namespace
VAST.WebRTC
Assembly
VAST.WebRTC.dll

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

httpPort int

The HTTP port number. Defaults to 80.

httpsPort int

The HTTPS port number. Defaults to 443.

path string

The HTTP handler path. Defaults to "/".

parameters WebRtcServerParameters

The server parameters, or null to 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

httpServer HttpServer

The existing HTTP server to register the handler on.

path string

The HTTP handler path.

parameters WebRtcServerParameters

The server parameters, or null to 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

Event Type

EventHandler<WebRtcStandaloneSignalingServer.AuthorizeEventArgs>