128 log(
int verbosity,
string fmt, ...);
131 log2(
int verbosity,
string fmt, *list<auto> args);
177 logInfo(
string fmt, ...);
180 logDebug(
string fmt, ...);
183 logError(
string fmt, ...);
The abstract web socket debug handler class.
Definition: DebugHandler.qm.dox.h:118
sendData(hash cx, auto data)
sends data to the given connection
abstract receiveData(hash cx, string msg)
called when web socket receives data
broadcastData(auto data)
sends data to all connections
abstract *string getContentType()
returns the MIME type for serialized data
WebSocketHandler::WebSocketConnection getConnectionImpl(hash cx, hash hdr, string cid)
called when a connection is established; the default implementation creates a WebSocketConnection obj...
hash handleRequest(hash cx, hash hdr, *data b)
called by the HTTP server to handle incoming HTTP requests
abstract string encodeData(auto data)
encode websocket data
The class represents a connection to a debug server via websocket client.
Definition: DebugHandler.qm.dox.h:60
connectionClosed()
The method is called by the WebSocketHandler when the connection is closed.
registered()
Notifies debug control host that new connection is registered.
constructor(AbstractWebSocketDebugHandler n_handler, hash n_cx)
The constructor is called by the WebSocketHandler when a new connection is made by a websocket client...
gotMessage(string msg)
The method is called by the WebSocketHandler when message from the client is received.
hash cx
websocket context, cx.id is used for sending messages to particular client, custom field may be added...
Definition: DebugHandler.qm.dox.h:64
the main web socket debug handler class implementing internal protocol in YAML format.
Definition: DebugHandler.qm.dox.h:188
constructor(WebSocketDebugProgramControl dpc, *HttpServer::AbstractAuthenticator auth, *hash opts)
create the object optionally with the given AbstractAuthenticator
*string getContentType()
returns the MIME type for serialized data
string encodeData(auto data)
encode data as YAML
receiveData(hash cx, string msg)
called when web socket receive data
debug program control via AbstractWebSocketDebugHandler
Definition: DebugHandler.qm.dox.h:219
constructor(string serverName)
creates the object
list< AbstractWebSocketDebugHandler > handlers
list of associated AbstractWebSocketDebugHandler handlers
Definition: DebugHandler.qm.dox.h:224
sendDataImpl(hash cx, auto data)
sends data to the given connection
addHandler(AbstractWebSocketDebugHandler newHandler)
add web socket handler object to handler list
broadcastDataImpl(auto data)
sends data to all connections
*AbstractAuthenticator auth
the DebugHandler namespace contains all the objects in the DebugHandler module
Definition: DebugHandler.qm.dox.h:50