new WsTransport(optsopt)
WebSocket transport class. Implements base transport interface.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
<optional> |
Transport options Properties
|
Methods
connect()
Connect to a WebSocket node. Connection arguments are the same as for WebSocket.
listen()
Listen for incoming WebSocket connections. Listen arguments are the same as for WebSocketServer. Available only for Node platform.