6 #ifndef KAGOME_TELEMETRY_CONNECTION_HPP 7 #define KAGOME_TELEMETRY_CONNECTION_HPP 35 std::function<void(std::shared_ptr<TelemetryConnection>)>;
56 virtual void send(
const std::string &data) = 0;
68 virtual void send(std::size_t message_handle) = 0;
79 #endif // KAGOME_TELEMETRY_CONNECTION_HPP virtual const TelemetryEndpoint & endpoint() const =0
Returns the associated telemetry endpoint.
virtual bool isConnected() const =0
Get the current status of the connection.
std::function< void(std::shared_ptr< TelemetryConnection >)> OnConnectedCallback
virtual void send(const std::string &data)=0
virtual ~TelemetryConnection()=default
virtual void shutdown()=0
Request the connection to shutdown.