#include <websocketevent.h>
Public Member Functions | |
| WebSocketConnectionFailedEvent (const WebSocketConnection &connection, int errorCode, const std::string &reason) | |
| WebSocketConnectionFailedEvent (const WebSocketConnection &connection, int errorCode, std::string &&reason) | |
Public Member Functions inherited from WebSocketConnectionEvent | |
| WebSocketConnectionEvent (const WebSocketConnection &connection) | |
Public Member Functions inherited from Event | |
| virtual | ~Event ()=default |
| Event ()=default | |
| Event (const Event &)=delete | |
| Event & | operator= (const Event &)=delete |
Public Attributes | |
| int | mErrorCode = -1 |
| Error code associated with reason for failing to establish connection. More... | |
| std::string | mReason |
| Reason for failing to establish connection. More... | |
Public Attributes inherited from WebSocketConnectionEvent | |
| WebSocketConnection | mConnection |
Occurs when a connection failed to open. Contains the error code and reason for failure. Note that the connection itself is invalided when this event is received.
| WebSocketConnectionFailedEvent | ( | const WebSocketConnection & | connection, |
| int | errorCode, | ||
| const std::string & | reason | ||
| ) |
| WebSocketConnectionFailedEvent | ( | const WebSocketConnection & | connection, |
| int | errorCode, | ||
| std::string && | reason | ||
| ) |
| int mErrorCode = -1 |
Error code associated with reason for failing to establish connection.
| std::string mReason |
Reason for failing to establish connection.