|
ledger-core
|
#include <WebSocketConnection.hpp>
Inheritance diagram for ledger::core::api::WebSocketConnection:Public Member Functions | |
| virtual void | onConnect (int32_t connectionId)=0 |
| virtual void | onClose ()=0 |
| virtual void | onMessage (const std::string &data)=0 |
| virtual void | onError (ErrorCode code, const std::string &message)=0 |
| virtual int32_t | getConnectionId ()=0 |
A connection to a Web Socket.
|
pure virtual |
Callback to call upon successful disconnection.
Implemented in ledger::core::WebSocketConnImpl.
|
pure virtual |
Callback to call upon successful connection.
| connectionId,the | ID of the Web Socket connection |
Implemented in ledger::core::WebSocketConnImpl.
|
pure virtual |
Callback to call when a Web Socket error occurs.
| code,the | error code |
| message,a | description of the reason of the error |
Implemented in ledger::core::WebSocketConnImpl.
|
pure virtual |
Callback to call upon each incoming message.
| data,the | attached data to the input message |
Implemented in ledger::core::WebSocketConnImpl.
1.8.13