Click or drag to resize

WebSocketServer Constructor (String)

Initializes a new instance of the WebSocketServer class with the specified url.

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public WebSocketServer(
	string url
)

Parameters

url
Type: SystemString
A String that represents the WebSocket URL of the server.
Exceptions
ExceptionCondition
ArgumentNullExceptionurl is .
ArgumentException

url is an empty string.

-or-

url is invalid.

Remarks

The new instance listens for incoming handshake requests on the IP address of the host of url and the port of url.

Either port 80 or 443 is used if url includes no port. Port 443 is used if the scheme of url is wss; otherwise, port 80 is used.

The new instance provides secure connections if the scheme of url is wss.

See Also