Public Member Functions | List of all members
EchoingWsWebApp Class Reference

WebSocket web application that echos messages back to the client. More...

#include <EchoingWsWebApp.hpp>

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

Public Member Functions

void handleBinaryMessage (WsSession &session, std::string_view path) override
 Handle received binary data. More...
 
void handleClose (WsSession &session, std::string_view path) override
 Handle a received close control message. More...
 
void handlePing (WsSession &session, std::string_view path) override
 Handle a received ping control message. More...
 
void handlePong (WsSession &session, std::string_view path) override
 Handle a received pong control message. More...
 
void handleTextMessage (WsSession &session, std::string_view path) override
 Handle received text data. More...
 
- Public Member Functions inherited from WsWebApp
virtual ~WsWebApp ()=default
 Destroy the WebSocket web application instance. More...
 

Detailed Description

WebSocket web application that echos messages back to the client.

This web app exists for testing purposes.

Member Function Documentation

◆ handleBinaryMessage()

void handleBinaryMessage ( WsSession session,
std::string_view  path 
)
overridevirtual

Handle received binary data.

Implements WsWebApp.

◆ handleClose()

void handleClose ( WsSession session,
std::string_view  path 
)
overridevirtual

Handle a received close control message.

Implements WsWebApp.

◆ handlePing()

void handlePing ( WsSession session,
std::string_view  path 
)
overridevirtual

Handle a received ping control message.

Implements WsWebApp.

◆ handlePong()

void handlePong ( WsSession session,
std::string_view  path 
)
overridevirtual

Handle a received pong control message.

Implements WsWebApp.

◆ handleTextMessage()

void handleTextMessage ( WsSession session,
std::string_view  path 
)
overridevirtual

Handle received text data.

Implements WsWebApp.


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