147 timeout timeout_ms = DefaultTimeout;
153 static Sequence seq();
159 const DefaultTimeout = 15s;
162 const Version =
"1.6";
165 const DefaultUserAgent =
sprintf(
"Qore-WebSocketClient/%s", WebSocketClient::Version);
192 constructor(code cb,
hash opts);
200 int getConnectionId();
234 hash connect(*
hash opts, *reference<hash> info);
255 nothing clearWarningQueue();
289 nothing setWarningQueue(
int warning_ms,
int warning_bs, Queue queue,
auto arg, timeout min_ms = 1s);
335 eventLoop(code callback);
341 handlePing(hash<auto> h);
353 logError(
string fmt);
359 logDebug(
string fmt);
365 sendClose(
int code, *
string txtmsg);
371 hash connectUnlocked(*
hash hdr, *reference<hash> info);
471 hash<PingInfo> pingIntern(hash<PingInfo> rv);
string sprintf(string fmt,...)
*hash getRuntimeOptions()
returns runtime options
const WsSchemes
known websocket schemes
Definition: WebSocketClient.qm.dox.h:113
*code yield
callable object to yield the current thread's execution
Definition: WebSocketClient.qm.dox.h:151
constructor(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
creates the WebSocketConnectionObject object
const WsDefaultPort
default port for connections
Definition: WebSocketClient.qm.dox.h:123
string getType()
returns "websocket"
class for websocket connections; returns an object of class WebSocketClient for receiving websocket e...
Definition: WebSocketClient.qm.dox.h:415
static WebSocketConnectionObject make(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
static constructor
hash getOptions()
gets options
*hash getDefaultOptions()
returns default options
the WebSocketClient namespace contains all the definitions in the WebSocketClient module ...
Definition: WebSocketClient.qm.dox.h:111
WebSocketClient getImpl(bool connect=True, *hash rtopts)
returns a WebSocketClient object