sptk2 logo
SPTK Home Page
Public Member Functions | List of all members
sptk::WSWebSocketsProtocol Class Reference

#include <WSWebSocketsProtocol.h>

Inheritance diagram for sptk::WSWebSocketsProtocol:
sptk::WSProtocol

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 ()
 
WSProtocoloperator= (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
TCPSocketsocket ()
 
HttpHeaders & headers ()
 
String header (const sptk::String &name)
 

Detailed Description

WebSockets connection handler

Treats connection as WebSockets, implementing WebSockets handshake and client session. Session stays connected until client disconnects.


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

Fri Oct 14 2022 09:58:49: SPTK 5.4.1