WebSocketServer Constructor (String) |
Namespace: Sfs2X.WebSocketSharp.Server
public WebSocketServer( string url )
Exception | Condition |
---|---|
ArgumentNullException | url is . |
ArgumentException | url is an empty string. -or- url is invalid. |
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.