WebSocket Type
This class represents a WebSocket connection, it provides an interface to read and write to a WebSocket.
Constructors
| Constructor | Description |
Full Usage:
WebSocket(connection, subprotocol)
Parameters:
Connection
subprotocol : string option
Returns: WebSocket
|
|
Instance members
| Instance member | Description |
|
|
Full Usage:
this.readIntoByteSegment byteSegmentForLengthFunc
Parameters:
int -> ByteSegment
Returns: SocketOp<Opcode * ByteSegment * bool>
|
|
Full Usage:
this.send opcode bs fin
Parameters:
Opcode
bs : ByteSegment
fin : bool
Returns: SocketOp<unit>
|
|
Full Usage:
this.subprotocol
Returns: string option
|
|