WebSocketServer Constructor (Int32, Boolean) |
Initializes a new instance of the
WebSocketServer class
with the specified
port and
secure.
Namespace:
Sfs2X.WebSocketSharp.Server
Assembly:
SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax public WebSocketServer(
int port,
bool secure
)
Parameters
- port
- Type: SystemInt32
An Int32 that represents the number of the port
on which to listen.
- secure
- Type: SystemBoolean
A Boolean: true if the new instance provides
secure connections; otherwise, false.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | port is less than 1 or greater than 65535.
|
Remarks
The new instance listens for incoming handshake requests on
Any and port.
See Also