Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::common::WebsocketEvent Struct Reference

A connection lifecycle event. More...

#include <websocket_common.hpp>

Public Attributes

WebsocketEventType type = WebsocketEventType::Open
std::string data
 The message text (Message), the error description (Error) or the close reason (Close).
std::uint16_t close_code = 0
 The close code (Close).
std::string connection_id
 The connection the event comes from.

Detailed Description

A connection lifecycle event.

Member Data Documentation

◆ type

WebsocketEventType binance::common::WebsocketEvent::type = WebsocketEventType::Open

◆ data

std::string binance::common::WebsocketEvent::data

The message text (Message), the error description (Error) or the close reason (Close).

◆ close_code

std::uint16_t binance::common::WebsocketEvent::close_code = 0

The close code (Close).

◆ connection_id

std::string binance::common::WebsocketEvent::connection_id

The connection the event comes from.