121        log(
int verbosity, 
string fmt);
 
  124        log2(
int verbosity, 
string fmt, *list args);
 
  165        logDebug(
string fmt);
 
  168        logError(
string fmt);
 
The abstract web socket debug handler class.
Definition: DebugHandler.qm.dox.h:111
 
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:59
 
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:63
 
the main web socket debug handler class implementing internal protocol in YAML format.
Definition: DebugHandler.qm.dox.h:173
 
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:203
 
constructor(string serverName)
creates the object
 
list handlers
list of associated AbstractWebSocketDebugHandler handlers
Definition: DebugHandler.qm.dox.h:208
 
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:49