1#ifndef ISSE_CONNECTION_HPP_INCLUDED
2#define ISSE_CONNECTION_HPP_INCLUDED
Definition base_connection.hpp:13
Interface for SSE (Server-Sent Events) connections.
Definition isse_connection.hpp:19
virtual ~ISseConnection()=default
virtual void subscribe(const std::string &request, EventCallback callback)=0
Subscribe to an SSE endpoint.
std::function< void(const SseEvent &)> EventCallback
Definition isse_connection.hpp:20
virtual void close()=0
Stop receiving events and close the SSE connection.
Represents a single Server-Sent Event.
Definition sse_event.hpp:15