#include <WSWebSocketsProtocol.h>
Public Member Functions | |
WSWebSocketsProtocol (TCPSocket *socket, const HttpHeaders &headers) | |
RequestInfo | process () override |
void | replyCloseConnectionRequest (uint16_t statusCode, const String &closeReason) |
Public Member Functions inherited from sptk::WSProtocol | |
WSProtocol (TCPSocket *socket, const HttpHeaders &headers) | |
WSProtocol (const WSProtocol &)=delete | |
virtual | ~WSProtocol () |
WSProtocol & | operator= (const WSProtocol &)=delete |
virtual RequestInfo | process ()=0 |
Process virtual method - to be implemented in derived classes. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from sptk::WSProtocol | |
TCPSocket & | socket () |
HttpHeaders & | headers () |
String | header (const sptk::String &name) |
WebSockets connection handler
Treats connection as WebSockets, implementing WebSockets handshake and client session. Session stays connected until client disconnects.