|
ledger-core
|
Inheritance diagram for ledger::core::WebSocketConnImpl:
Collaboration diagram for ledger::core::WebSocketConnImpl:Public Member Functions | |
| WebSocketConnImpl (const WebSocketEventHandler &handler, const std::shared_ptr< ledger::core::WebSocketConnection > &conn) | |
| void | onConnect (int32_t connectionId) override |
| void | onClose () override |
| void | onMessage (const std::string &data) override |
| void | onError (api::ErrorCode code, const std::string &message) override |
| int32_t | getConnectionId () override |
|
inlineoverridevirtual |
Callback to call upon successful disconnection.
Implements ledger::core::api::WebSocketConnection.
|
inlineoverridevirtual |
Callback to call upon successful connection.
| connectionId,the | ID of the Web Socket connection |
Implements ledger::core::api::WebSocketConnection.
|
inlineoverridevirtual |
Callback to call when a Web Socket error occurs.
| code,the | error code |
| message,a | description of the reason of the error |
Implements ledger::core::api::WebSocketConnection.
|
inlineoverridevirtual |
Callback to call upon each incoming message.
| data,the | attached data to the input message |
Implements ledger::core::api::WebSocketConnection.
1.8.13