Qore DebugHandler Module Reference  0.1
DebugHandler::WebSocketDebugHandler Class Reference

the main web socket debug handler class implementing internal protocol in YAML format. More...

Inheritance diagram for DebugHandler::WebSocketDebugHandler:

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...
 
WebSocketHandler::WebSocketConnection getConnectionImpl (hash cx, hash hdr, string cid)
 called when a connection is established; the default implementation creates a WebSocketConnection object
 
hash handleRequest (hash cx, hash hdr, *data b)
 called by the HTTP server to handle incoming HTTP requests More...
 
 sendData (hash cx, auto data)
 sends data to the given connection More...
 

Detailed Description

the main web socket debug handler class implementing internal protocol in YAML format.

Member Function Documentation

◆ constructor()

DebugHandler::WebSocketDebugHandler::constructor ( WebSocketDebugProgramControl  dpc,
*HttpServer::AbstractAuthenticator  auth,
*hash  opts 
)

create the object optionally with the given AbstractAuthenticator

Parameters
auththe authentication object to use to authenticate connections (see AbstractAuthenticator); if no AbstractAuthenticator object is passed, then by default no authentication will be required
dpcthe debug program controller object
optspassed to WebSocketHandler constructor