SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
Loading...
Searching...
No Matches
sfs3::event::Connection Struct Reference

Dispatched when a connection to a SmartFoxServer 3 instance is attempted. More...

#include <SFSEvent.h>

Public Attributes

bool success
 True if a connection was established, false otherwise.
std::optional< std::string > errMessage
 The description of the error, when the connection failed.

Detailed Description

Dispatched when a connection to a SmartFoxServer 3 instance is attempted.

Sent in response to a call to SmartFox::connect.

See also
SFSEvent::CONNECTION_RETRY
SFSEvent::CONNECTION_RESUME
SFSEvent::CONNECTION_LOST

Member Data Documentation

◆ errMessage

std::optional<std::string> sfs3::event::Connection::errMessage

The description of the error, when the connection failed.

Empty on success.


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