54 namespace WebSocketHandler {
71 const DefaultQueuePollingInterval = 50ms;
212 sendOne(
string id, data d);
215 private sendClose(
Qore::Socket sock,
int code, *
string txtmsg);
218 static string getDataString(*data data);
225 logError(
string fmt);
229 logDebug(
string fmt);
*binary pollData()
this method is called by the WebSocketHandler to poll for messages from the client to send from the s...
this class represents a connection to a websocket client
Definition: WebSocketHandler.qm.dox.h:65
*binary pollDataImmediate()
this method is called by the WebSocketHandler to poll for messages from the client to send from the s...
the main web socket handler class
Definition: WebSocketHandler.qm.dox.h:125
constructor(WebSocketHandler handler)
the constructor is called by the WebSocketHandler when a new connection is made by a websocket client...
send(data msg)
pushes an unencoded message on the connection's message queue; the message will be encoded with WebSo...
hash ch
connection hash
Definition: WebSocketHandler.qm.dox.h:137
gotMessage(string msg)
this method is called by the WebSocketHandler when messages from the client are received ...
Qore::Thread::Queue queue()
the Queue object stored messages to be sent to the server
sendEncoded(binary msg)
pushes an already-encoded message on the connection's message queue