The abstract web socket debug handler class.
Definition DebugHandler.qm.dox.h:121
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:63
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:67
the main web socket debug handler class implementing internal protocol in YAML format.
Definition DebugHandler.qm.dox.h:175
*string getContentType()
returns the MIME type for serialized data
string encodeData(auto data)
encode data as YAML
constructor(WebSocketDebugProgramControl dpc, *HttpServer::AbstractAuthenticator auth, *hash< auto > opts)
create the object optionally with the given AbstractAuthenticator
receiveData(hash cx, string msg)
called when web socket receive data
debug program control via AbstractWebSocketDebugHandler
Definition DebugHandler.qm.dox.h:206
list< AbstractWebSocketDebugHandler > handlers
list of associated AbstractWebSocketDebugHandler handlers
Definition DebugHandler.qm.dox.h:211
sendDataImpl(hash cx, auto data)
sends data to the given connection
addHandler(AbstractWebSocketDebugHandler newHandler)
add web socket handler object to handler list
constructor(string serverName, *Logger::LoggerInterface logger)
creates the object
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:53