userver: server::websocket::Message Struct Reference
Loading...
Searching...
No Matches
server::websocket::Message Struct Reference

#include <userver/server/websocket/server.hpp>

Detailed Description

WebSocket message.

Examples
samples/websocket_service/websocket_service.cpp.

Definition at line 40 of file server.hpp.

Public Attributes

std::string data
 payload
 
std::optional< CloseStatusclose_status = {}
 close status
 
bool is_text = false
 is it text or binary?
 

Member Data Documentation

◆ close_status

std::optional<CloseStatus> server::websocket::Message::close_status = {}

close status

Examples
samples/websocket_service/websocket_service.cpp.

Definition at line 42 of file server.hpp.

◆ data

std::string server::websocket::Message::data

payload

Definition at line 41 of file server.hpp.

◆ is_text

bool server::websocket::Message::is_text = false

is it text or binary?

Definition at line 43 of file server.hpp.


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