Class WebSocketServerOptions
- Namespace
- System.Net.WebSockets.Server
- Assembly
- System.Net.WebSockets.dll
Options to use with a WebSocketServer object.
public class WebSocketServerOptions : WebSocketOptions
- Inheritance
-
WebSocketServerOptions
- Inherited Members
- Extension Methods
Constructors
WebSocketServerOptions()
public WebSocketServerOptions()
Properties
IsStandAlone
Determines if the websocket runs as a independent websocket server with it's own HttpListner. If set to true, the Websocket server will run a dedicated HttpListner on the defined port. If set to false, one has to run their own HTTPListner and use WebsocketServer.AddWebSocket(HttpListenerContext context) to manually add Websocket clients.
public bool IsStandAlone { get; set; }
Property Value
MaxClients
The maximum number of clients that can connect to the server.
public int MaxClients { get; set; }
Property Value
Port
The local Port to listen on.
public int Port { get; set; }
Property Value
Prefix
The remote Prefix clients need to connect to.
public string Prefix { get; set; }
Property Value
ServerName
The server name that is presented to the client during the handshake
public string ServerName { get; set; }