2#ifndef _KURLYK_WEBSOCKET_EVENT_DATA_HPP_INCLUDED
3#define _KURLYK_WEBSOCKET_EVENT_DATA_HPP_INCLUDED
Encapsulates data for a WebSocket event, providing information about event type, message,...
std::string message
The message content associated with the event, if any.
WebSocketEventType event_type
Type of the WebSocket event, defining what occurred (e.g., Open, Close, Message, Error).
long status_code
Status code related to the event, set during the Open event (e.g., HTTP status code).
WebSocketSenderPtr sender
Pointer to the WebSocket sender, allowing further actions related to this event.
std::error_code error_code
Error code for the Error event, if an error occurred.
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
WebSocketEventType
Types of WebSocket events.
std::shared_ptr< IWebSocketSender > WebSocketSenderPtr
Alias for a shared pointer to an IWebSocketSender instance.