WsCommandHandlerResource Class Reference

#include <WsCommandHandlerResource.h>

Inheritance diagram for WsCommandHandlerResource:
[legend]
Collaboration diagram for WsCommandHandlerResource:
[legend]

Public Member Functions

 WsCommandHandlerResource ()
 

Protected Member Functions

int checkHeaders (HttpServerConnection &connection, HttpRequest &request, HttpResponse &response) override
 
void onMessage (WebsocketConnection &connection, const String &message)
 
- Protected Member Functions inherited from WebsocketResource
bool onConnect ()
 
 WebsocketResource ()
 
void shutdown (HttpServerConnection &connection) override
 Takes care to cleanup the connection. More...
 
void setConnectionHandler (WebsocketDelegate handler)
 
void setMessageHandler (WebsocketMessageDelegate handler)
 
void setBinaryHandler (WebsocketBinaryDelegate handler)
 
void setPongHandler (WebsocketDelegate handler)
 
void setDisconnectionHandler (WebsocketDelegate handler)
 
- Protected Member Functions inherited from HttpResource
virtual ~HttpResource ()
 

Additional Inherited Members

- Protected Attributes inherited from WebsocketResource
WebsocketDelegate wsConnect = nullptr
 
WebsocketMessageDelegate wsMessage = nullptr
 
WebsocketBinaryDelegate wsBinary = nullptr
 
WebsocketDelegate wsPong = nullptr
 
WebsocketDelegate wsDisconnect = nullptr
 
- Protected Attributes inherited from HttpResource
HttpServerConnectionBodyDelegate onBody = nullptr
 resource wants to process the raw body data More...
 
HttpResourceDelegate onHeadersComplete = nullptr
 headers are ready More...
 
HttpResourceDelegate onRequestComplete = nullptr
 request is complete OR upgraded More...
 
HttpServerConnectionUpgradeDelegate onUpgrade = nullptr
 request is upgraded and raw data is passed to it More...
 

Constructor & Destructor Documentation

◆ WsCommandHandlerResource()

WsCommandHandlerResource::WsCommandHandlerResource ( )
inline

Member Function Documentation

◆ checkHeaders()

int WsCommandHandlerResource::checkHeaders ( HttpServerConnection connection,
HttpRequest request,
HttpResponse response 
)
inlineoverrideprotectedvirtual

Reimplemented from WebsocketResource.

◆ onMessage()

void WsCommandHandlerResource::onMessage ( WebsocketConnection connection,
const String message 
)
inlineprotected

The documentation for this class was generated from the following file: