126 setLogger(*
list args);
129 log(
int verbosity,
string fmt);
167 logDebug(
string fmt);
170 logError(
string fmt);
setHandler(*HttpServer::AbstractAuthenticator auth, *list args)
sets the web socket handler object; override in a subclass to provide a custom handler object ...
broadcastDataImpl(auto data)
sends data to all connections
the main web socket debug handler class
Definition: DebugHandler.qm.dox.h:107
*AbstractAuthenticator auth
registered()
send welcome message to identify itself
constructor(*HttpServer::AbstractAuthenticator auth, WebSocketDebugProgramControl dpc, *list args)
create the object optionally with the given AbstractAuthenticator
hash handleRequest(hash cx, hash hdr, *data b)
called by the HTTP server to handle incoming HTTP requests
WebSocketHandler::WebSocketConnection getConnectionImpl(hash cx, hash hdr, string cid)
called when a connection is established; the default implementation creates a WebSocketConnection obj...
sendDataImpl(hash cx, auto data)
sends data to the given connection
constructor(string serverName, *HttpServer::AbstractAuthenticator auth)
creates the object and set the web socket handler object by calling setHandler()
WebSocketHandler getHandler()
returns the web socket handler object
gotMessage(string msg)
this method is called by the WebSocketHandler when message from the client is received ...
the DebugHandler namespace contains all the objects in the DebugHandler module
Definition: DebugHandler.qm.dox.h:49
web socket debug program control class
Definition: DebugHandler.qm.dox.h:175
connectionClosed()
this method is called by the WebSocketHandler when the connection is closed
this class represents a connection to a debug server via websocket client
Definition: DebugHandler.qm.dox.h:59
*string getContentType()
returns the MIME type for serialized data
constructor(WebSocketDebugHandler n_handler, hash n_cx)
the constructor is called by the WebSocketHandler when a new connection is made by a websocket client...
hash cx
websocket context, cx.id is used for sending messages to particular client
Definition: DebugHandler.qm.dox.h:69