Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Public Member Functions | Public Attributes | List of all members
WSServerDataHandler Struct Reference
Inheritance diagram for WSServerDataHandler:

Public Member Functions

void onConnect (seasocks::WebSocket *socket) override
 
void onData (seasocks::WebSocket *socket, const char *data) override
 
void onData (seasocks::WebSocket *socket, const uint8_t *data, size_t size) override
 
void onDisconnect (seasocks::WebSocket *socket) override
 

Public Attributes

std::shared_ptr< seasocks::Server > server
 
std::set< seasocks::WebSocket * > connections
 
std::string address
 
std::function< void(std::string,
void *, int)> 
on_receive
 
std::function< void(std::string)> on_connect
 
std::function< void(std::string)> on_disconnect
 
bool binary
 

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