4 #ifndef DJINNI_GENERATED_WEBSOCKETCONNECTION_HPP 5 #define DJINNI_GENERATED_WEBSOCKETCONNECTION_HPP 11 #include <libcore_export.h> 13 #define LIBCORE_EXPORT 17 namespace ledger {
namespace core {
namespace api {
30 virtual void onConnect(int32_t connectionId) = 0;
33 virtual void onClose() = 0;
39 virtual void onMessage(
const std::string & data) = 0;
46 virtual void onError(
ErrorCode code,
const std::string & message) = 0;
48 virtual int32_t getConnectionId() = 0;
52 #endif //DJINNI_GENERATED_WEBSOCKETCONNECTION_HPP Definition: WebSocketConnection.hpp:22
Definition: Account.cpp:8
ErrorCode
Definition: ErrorCode.hpp:20