OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
ossia::qt::websocket_server_state Struct Reference

Detailed Description

Shared between the server object and its connections: the websocketpp server lives on the mapper's asio context, the QJSValue callbacks on the Qt thread. The asio handlers keep a strong reference to this state so that the server stays valid until websocketpp is done with it.

Public Member Functions

 websocket_server_state (const ossia::net::network_context_ptr &ctx)
 

Public Attributes

boost::asio::io_context & context
 
std::shared_ptr< ossia::net::websocket_serverserver
 
std::atomic_bool alive {true}