82 namespace SewioWebSocketClient {
string sprintf(string fmt,...)
sendData(string method, string resource, *hash h)
sends data to the server
class for Sewio RTLS Studio websocket connections; returns an object of class SewioWebSocketClient fo...
Definition: SewioWebSocketClient.qm.dox.h:192
const DefaultUserAgent
default user agent string for HTTP requests
Definition: SewioWebSocketClient.qm.dox.h:121
hash connectUnlocked(*hash hdr, *reference< hash > info)
connects to the target server and starts the event listener thread
static SewioWebSocketConnection make(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
static constructor
hash getOptions()
gets options
SewioWebSocketClient getImpl(bool connect=True, *hash rtopts)
returns a SewioWebSocketClient object
const RequiredOptions
required options
Definition: SewioWebSocketClient.qm.dox.h:112
const WsSchemes
known websocket schemes
Definition: SewioWebSocketClient.qm.dox.h:85
constructor(code cb, hash opts)
creates the object and optionally sets logging targets
hash getSchemes()
returns a hash of URL scheme information for URL schemes supported by this object ...
string getType()
returns "sewiowebsocket"
the main Sewio websocket client class
Definition: SewioWebSocketClient.qm.dox.h:107
constructor(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
creates the SewioWebSocketConnection object
const Version
module version
Definition: SewioWebSocketClient.qm.dox.h:118
*hash getDefaultOptions()
returns default options
static code getCallback(code cb)
extern callback wrapper to parse the JSON and call the user's callback with the deserialized data ...