Class Protocols.WebSocket.Connection
- Variable buf
Stdio.BufferProtocols.WebSocket.Connection.buf- Description
Output buffer
- Variable bufferedAmount
intProtocols.WebSocket.Connection.bufferedAmount- Description
Number of bytes in the send buffer.
- Variable endpoint
Standards.URIProtocols.WebSocket.Connection.endpoint- Description
Remote endpoint in client mode
- Variable http_buffer
protectedStdio.BufferProtocols.WebSocket.Connection.http_buffer- Description
Used in client mode to read server response.
- Variable masking
boolProtocols.WebSocket.Connection.masking- Description
If true, all outgoing frames are masked.
- Variable onclose
function(CLOSE_STATUS,mixed:void) Protocols.WebSocket.Connection.onclose- Description
This callback will be called once the WebSocket has been closed. No more frames can be sent or will be received after the close event has been triggered. This happens either when receiving a frame initiating the close handshake or after the TCP connection has been closed. Note that this is a deviation from the WebSocket API specification.
- Variable onmessage
function(Frame,mixed:void) Protocols.WebSocket.Connection.onmessage
- Variable onopen
function(mixed:void) Protocols.WebSocket.Connection.onopen
- Variable parser
ParserProtocols.WebSocket.Connection.parser- Description
An instance of Parser used to parse incoming data.
- Variable state
STATEProtocols.WebSocket.Connection.state
- Variable stream
Stdio.File|SSL.FileProtocols.WebSocket.Connection.stream- Description
The actual client connection.
- Method create
Protocols.WebSocket.Connection Protocols.WebSocket.Connection()- Description
Create a WebSocket client