Kurlyk
Loading...
Searching...
No Matches
WebSocketEventData.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef _KURLYK_WEBSOCKET_EVENT_DATA_HPP_INCLUDED
3#define _KURLYK_WEBSOCKET_EVENT_DATA_HPP_INCLUDED
4
7
8namespace kurlyk {
9
16 public:
18 std::string message;
20 std::error_code error_code;
22 }; // WebSocketEventData
23
24}; // namespace kurlyk
25
26#endif // _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.
Definition enums.hpp:31
std::shared_ptr< IWebSocketSender > WebSocketSenderPtr
Alias for a shared pointer to an IWebSocketSender instance.