#include <EventStreamClient.h>
◆ OnConnectCallback()
| void Aws::Eventstreamrpc::ConnectionLifecycleHandler::OnConnectCallback |
( |
| ) |
|
|
virtual |
This callback is only invoked upon receiving a CONNECT_ACK with the CONNECTION_ACCEPTED flag set by the server. Therefore, once this callback is invoked, the ClientConnection is ready to be used for sending messages.
◆ OnDisconnectCallback()
| void Aws::Eventstreamrpc::ConnectionLifecycleHandler::OnDisconnectCallback |
( |
RpcError |
status | ) |
|
|
virtual |
Invoked upon connection shutdown.
- Parameters
-
| status | The status upon disconnection. It can be treated as a bool with true implying a successful disconnection. |
◆ OnErrorCallback()
| bool Aws::Eventstreamrpc::ConnectionLifecycleHandler::OnErrorCallback |
( |
RpcError |
status | ) |
|
|
virtual |
Invoked upon receiving an error. Use the return value to determine whether or not to force the connection to close. Keep in mind that once closed, the ClientConnection can no longer send messages.
- Parameters
-
| status | The status upon disconnection. It can be treated as a bool with true implying a successful disconnection. |
◆ OnPingCallback()
Invoked upon receiving a ping from the server. The headers and payload refer to what is contained in the ping message.
The documentation for this class was generated from the following files: