Pike v8.0 release 1738

Class Protocols.WebSocket.Connection


Variable buf

Stdio.Buffer Protocols.WebSocket.Connection.buf

Description

Output buffer


Variable bufferedAmount

int Protocols.WebSocket.Connection.bufferedAmount

Description

Number of bytes in the send buffer.


Variable endpoint

Standards.URI Protocols.WebSocket.Connection.endpoint

Description

Remote endpoint in client mode


Variable http_buffer

protected Stdio.Buffer Protocols.WebSocket.Connection.http_buffer

Description

Used in client mode to read server response.


Variable masking

bool Protocols.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

Parser Protocols.WebSocket.Connection.parser

Description

An instance of Parser used to parse incoming data.


Variable state

STATE Protocols.WebSocket.Connection.state


Variable stream

Stdio.File|SSL.File Protocols.WebSocket.Connection.stream

Description

The actual client connection.


Method create

Protocols.WebSocket.Connection Protocols.WebSocket.Connection()

Description

Create a WebSocket client