# Class Protocols.WebSocket.Connection

Variable bufferedAmount

  `int Protocols.WebSocket.Connection.bufferedAmount`

Description

  Number of bytes in the send buffer.

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 Protocols.WebSocket.Connection.stream`

Description

  The actual client connection.