C-DEngine 5.105

WebSocketServer Constructor (String)

Initializes a new instance of the WebSocketServer class with the specified WebSocket URL.

Namespace:  WebSocketSharp.Server
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public WebSocketServer(
	string url
)
Public Sub New ( _
	url As String _
)
public:
WebSocketServer(
	String^ url
)

Parameters

url
Type: String
A String that represents the WebSocket URL of the server.

Exceptions


ExceptionCondition
ArgumentNullExceptionurl is nullNothingnullptra null reference (Nothing in Visual Basic).
ArgumentException

url is empty.

-or-

url is invalid.

Remarks


An instance initialized by this constructor listens for the incoming connection requests on the host name and port in url.

If url doesn't include a port, either port 80 or 443 is used on which to listen. It's determined by the scheme (ws or wss) in url. (Port 80 if the scheme is ws.)