std::variant< Success, BinaryDataBuffer, ImageBinaryData, ColorImageBinaryData, Error > OutMessage
Variant type representing any outgoing message.
Context object passed to all handler classes.
void broadcastMessage(protocol::OutMessage &&message, const std::optional< irsol::types::client_id_t > &excludeClient=std::nullopt)
Broadcasts a message to all clients.
virtual std::shared_ptr< irsol::server::ClientSession > getSession(const irsol::types::client_id_t &clientId)
Retrieves the client's session associated with the given clientId.
App & app
Reference to application instance.