Qorus Integration Engine®
5.1.31_git
|
this class is used to allow Qorus services to provide dedicated WebSocket server services to external clients More...
Inherits WebSocketHandler::WebSocketHandler OMQ::AbstractServiceHttpHandler.
Private:Internal Member Methods | |
constructor (string path, HttpServer::AbstractAuthenticator auth=new DefaultQorusRBACAuthenticator(), bool path_is_regex=False) | |
creates the object with the given arguments More... | |
hash< HttpResponseInfo > | handleRequest (HttpListenerInterface listener, Socket s, hash< auto > cx, hash< auto > hdr, *data body) |
this method ensures that thread-local data is set properly | |
OMQ::QorusWebSocketConnection | getConnectionImpl (hash< auto > cx, hash< auto > hdr, string cid) |
called when a connection is established; the default implementation creates an OMQ::QorusWebSocketConnection object | |
this class is used to allow Qorus services to provide dedicated WebSocket server services to external clients
If any listeners are added to the AbstractServiceRestHandler object, then the URL set in the object is only bound
to the new listeners specified in this object. Otherwise, the URL is bound to all listeners in the system HTTP server.
|
inlineprivate:internal |
creates the object with the given arguments
path | the URI path match on incoming requests |
auth | the AbstractAuthenticator for the object; if no argument is passed, then the system RBAC authenticator is used; meaning that Qorus application users are required to connect, and the users must have the OMQ::QR_LOGIN role to connect as well |
path_is_regex | if True then path is interpreted as a regular expression; note that matching requests based on regular expressions is much slower than a simple string match |