73 namespace WebSocketUtil {
76 const WS_GUID =
"258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
const WSCC_GoingAway
"Going Away" code
Definition: WebSocketUtil.qm.dox.h:120
const WSOPMap
maps from opcodes to text descriptions
Definition: WebSocketUtil.qm.dox.h:103
const WSOP_Continuation
continuation frame opcode
Definition: WebSocketUtil.qm.dox.h:85
const WSOP_Close
connection code opcode
Definition: WebSocketUtil.qm.dox.h:94
const WSOP_Pong
pong opcode
Definition: WebSocketUtil.qm.dox.h:100
const WSCC_NoStatusRcvd
"No Status Rcvd" code
Definition: WebSocketUtil.qm.dox.h:129
const WSCC_MandatoryExt
"Mandatory Ext." code
Definition: WebSocketUtil.qm.dox.h:144
const WSCC_UnsupportedData
"Unsupported Data" code
Definition: WebSocketUtil.qm.dox.h:126
const WSCC_ProtocolError
"Protocol Error" code
Definition: WebSocketUtil.qm.dox.h:123
const WS_GUID
WebSocket GUID.
Definition: WebSocketUtil.qm.dox.h:76
string ws_get_response_key(string key)
returns a string response key from the binary key and the WebSocket GUID value
const WSCC_InvalidData
"Invalid Frame Payload Data" code
Definition: WebSocketUtil.qm.dox.h:135
const WSCCMap
maps from close codes to text descriptions
Definition: WebSocketUtil.qm.dox.h:153
hash ws_read_message(Socket sock, *timeout to)
read and decode a message from a socket
const WSOP_Binary
binary frame opcode
Definition: WebSocketUtil.qm.dox.h:91
const WSCC_MessageTooBig
"Message Too Big" code
Definition: WebSocketUtil.qm.dox.h:141
const WSOP_Ping
ping opcode
Definition: WebSocketUtil.qm.dox.h:97
binary ws_encode_message(data msg, int op=-1, *bool masked)
encodes a message for sending over a websocket socket
const WSOP_Text
text frame opcode
Definition: WebSocketUtil.qm.dox.h:88
const WSCC_InternalServerError
"Internal Server Error" code
Definition: WebSocketUtil.qm.dox.h:147
const WSCC_TlsHandshake
"TLS Handshake" code
Definition: WebSocketUtil.qm.dox.h:150
const WSCC_AbnormalClosure
"Abnormal Closure" code
Definition: WebSocketUtil.qm.dox.h:132
const WSCC_NormalClosure
"Normal Closure" code
Definition: WebSocketUtil.qm.dox.h:117
const WS_FIN
the final fragment in a message
Definition: WebSocketUtil.qm.dox.h:79
const WSCC_PolicyViolation
"Policy Violation" code
Definition: WebSocketUtil.qm.dox.h:138