92 const DefaultQueuePollingInterval = 500ms;
168 const DefaultSocketSendTimeout = 30s;
218 *
list getConnectionIds();
258 sendOne(softstring
id, data d);
267 static string getDataString(*data data);
274 logError(
string fmt);
278 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:85
*binary pollDataImmediate()
this method is called by the WebSocketHandler to poll for messages from the client to send from the s...
connectionClosed()
this method is called by the WebSocketHandler when the connection is closed
the WebSocketHandler namespace contains all the objects in the WebSocketHandler module ...
Definition: WebSocketHandler.qm.dox.h:75
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:177
registered()
called when the connection has been registered in handler and accept sending messages (e...
gotMessage(string msg)
this method is called by the WebSocketHandler when messages from the client are received ...
Qore::Thread::Queue queue()
the Queue object stores messages to be sent to the server
constructor(WebSocketHandler n_handler)
the constructor is called by the WebSocketHandler when a new connection is made by a websocket client...
sendEncoded(binary msg)
pushes an already-encoded message on the connection's message queue