Qore DebugHandler Module Reference 0.1
|
the main web socket debug handler class implementing internal protocol in YAML format. More...
#include <DebugHandler.qm.dox.h>
Public Member Methods | |
constructor (WebSocketDebugProgramControl dpc, *HttpServer::AbstractAuthenticator auth, *hash opts) | |
create the object optionally with the given AbstractAuthenticator More... | |
string | encodeData (auto data) |
encode data as YAML | |
*string | getContentType () |
returns the MIME type for serialized data | |
receiveData (hash cx, string msg) | |
called when web socket receive data | |
Public Member Methods inherited from DebugHandler::AbstractWebSocketDebugHandler | |
broadcastData (auto data) | |
sends data to all connections More... | |
abstract string | encodeData (auto data) |
encode websocket data | |
WebSocketHandler::WebSocketConnection | getConnectionImpl (hash cx, hash hdr, string cid) |
called when a connection is established; the default implementation creates a WebSocketConnection object | |
abstract *string | getContentType () |
returns the MIME type for serialized data | |
hash | handleRequest (hash cx, hash hdr, *data b) |
called by the HTTP server to handle incoming HTTP requests More... | |
abstract | receiveData (hash cx, string msg) |
called when web socket receives data More... | |
sendData (hash cx, auto data) | |
sends data to the given connection More... | |
the main web socket debug handler class implementing internal protocol in YAML format.
DebugHandler::WebSocketDebugHandler::constructor | ( | WebSocketDebugProgramControl | dpc, |
*HttpServer::AbstractAuthenticator | auth, | ||
*hash | opts | ||
) |
create the object optionally with the given AbstractAuthenticator
auth | the authentication object to use to authenticate connections (see AbstractAuthenticator); if no AbstractAuthenticator object is passed, then by default no authentication will be required |
dpc | the debug program controller object |
opts | passed to WebSocketHandler constructor |