82 namespace WebSocketClient {
116 timeout timeout_ms = DefaultTimeout;
121 const DefaultTimeout = 15s;
123 const Version =
"1.0";
125 const DefaultUserAgent =
sprintf(
"Qore-WebSocketClient/%s", WebSocketClient::Version);
149 constructor(code callback,
hash opts);
179 hash connect(*
hash opts, *reference info);
200 nothing clearWarningQueue();
234 nothing setWarningQueue(
int warning_ms,
int warning_bs, Queue queue, any arg, timeout min_ms = 1s);
275 private eventLoop(code callback);
278 private logInfo(
string fmt);
281 private logError(
string fmt);
284 private logDebug(
string fmt);
287 private sendClose(
int code, *
string txtmsg);
290 private hash connectUnlocked(*
hash hdr, *reference info);
string sprintf(string fmt,...)
const WsSchemes
known websocket schemes
Definition: WebSocketClient.qm.dox.h:85
const WsDefaultPort
default port for connections
Definition: WebSocketClient.qm.dox.h:95
the main websocket client class
Definition: WebSocketClient.qm.dox.h:104