140 timeout timeout_ms = DefaultTimeout;
146 static Sequence seq();
152 const DefaultTimeout = 15s;
155 const Version =
"1.6";
158 const DefaultUserAgent =
sprintf(
"Qore-WebSocketClient/%s", WebSocketClient::Version);
185 constructor(code cb,
hash opts);
193 int getConnectionId();
227 hash connect(*
hash opts, *reference<hash> info);
248 nothing clearWarningQueue();
282 nothing setWarningQueue(
int warning_ms,
int warning_bs, Queue queue,
auto arg, timeout min_ms = 1s);
328 eventLoop(code callback);
340 logError(
string fmt);
346 logDebug(
string fmt);
352 sendClose(
int code, *
string txtmsg);
358 hash connectUnlocked(*
hash hdr, *reference<hash> info);
452 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:106
*code yield
callable object to yield the current thread's execution
Definition: WebSocketClient.qm.dox.h:144
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:116
string getType()
returns "websocket"
class for websocket connections; returns an object of class WebSocketClient for receiving websocket e...
Definition: WebSocketClient.qm.dox.h:396
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:104
WebSocketClient getImpl(bool connect=True, *hash rtopts)
returns a WebSocketClient object