WsCommandHandlerResource Class Reference
#include <WsCommandHandlerResource.h>
Inheritance diagram for WsCommandHandlerResource:
Collaboration diagram for WsCommandHandlerResource:
Public Member Functions | |
| WsCommandHandlerResource () | |
Protected Member Functions | |
| int | checkHeaders (HttpServerConnection &connection, HttpRequest &request, HttpResponse &response) override |
| void | onMessage (WebsocketConnection &connection, const String &message) |
| 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 | setDisconnectionHandler (WebsocketDelegate handler) |
| bool | onConnect () |
Protected Attributes | |
| WebsocketDelegate | wsConnect = nullptr |
| WebsocketMessageDelegate | wsMessage = nullptr |
| WebsocketBinaryDelegate | wsBinary = nullptr |
| WebsocketDelegate | wsDisconnect = nullptr |
| 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()
|
inline |
Member Function Documentation
◆ checkHeaders()
|
inlineoverrideprotectedvirtual |
Reimplemented from WebsocketResource.
◆ onConnect()
|
protectedinherited |
◆ onMessage()
|
inlineprotected |
◆ setBinaryHandler()
|
inlineinherited |
◆ setConnectionHandler()
|
inlineinherited |
◆ setDisconnectionHandler()
|
inlineinherited |
◆ setMessageHandler()
|
inlineinherited |
◆ shutdown()
|
overridevirtualinherited |
Takes care to cleanup the connection.
Reimplemented from HttpResource.
Member Data Documentation
◆ onBody
|
inherited |
resource wants to process the raw body data
◆ onHeadersComplete
|
inherited |
headers are ready
◆ onRequestComplete
|
inherited |
request is complete OR upgraded
◆ onUpgrade
|
inherited |
request is upgraded and raw data is passed to it
◆ wsBinary
|
protectedinherited |
◆ wsConnect
|
protectedinherited |
◆ wsDisconnect
|
protectedinherited |
◆ wsMessage
|
protectedinherited |
The documentation for this class was generated from the following file:
1.8.13