#include <websocketevent.h>
Public Member Functions | |
WebSocketConnectionClosedEvent (const WebSocketConnection &connection, int errorCode, const std::string &reason) | |
WebSocketConnectionClosedEvent (const WebSocketConnection &connection, int errorCode, std::string &&reason) | |
![]() | |
WebSocketConnectionEvent (const WebSocketConnection &connection) | |
![]() | |
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 closing connection. More... | |
std::string | mReason |
Reason for closing connection. More... | |
![]() | |
WebSocketConnection | mConnection |
Occurs when a connection is closed. Contains the reason and exit code. Note that the connection itself is invalided when this event is received.
WebSocketConnectionClosedEvent | ( | const WebSocketConnection & | connection, |
int | errorCode, | ||
const std::string & | reason | ||
) |
WebSocketConnectionClosedEvent | ( | const WebSocketConnection & | connection, |
int | errorCode, | ||
std::string && | reason | ||
) |
int mErrorCode = -1 |
Error code associated with reason for closing connection.
std::string mReason |
Reason for closing connection.