SNode.C
Loading...
Searching...
No Matches
web::http::legacy::un::EventSource Class Reference

#include <EventSource.h>

Inheritance diagram for web::http::legacy::un::EventSource:
Collaboration diagram for web::http::legacy::un::EventSource:

Public Member Functions

 ~EventSource () override
Public Member Functions inherited from web::http::client::tools::EventSourceT< web::http::legacy::un::Client >
 EventSourceT (const EventSourceT &)=delete
EventSourceToperator= (const EventSourceT &)=delete
 EventSourceT (EventSourceT &&) noexcept=delete
EventSourceToperator= (EventSourceT &&) noexcept=delete
void close () override
Public Member Functions inherited from web::http::client::tools::EventSource
EventSourceonMessage (std::function< void(const MessageEvent &)> messageCallback)
EventSourceaddEventListener (const std::string &key, std::function< void(const MessageEvent &)> eventListener)
EventSourceremoveEventListeners (const std::string &type)
EventSourceonOpen (std::function< void()> onOpen)
EventSourceonError (std::function< void()> onError)
EventSource::ReadyState readyState () const
const std::string & lastEventId () const
uint32_t retry () const
EventSourceretry (uint32_t retry)

Private Types

using Super = web::http::client::tools::EventSourceT<web::http::legacy::un::Client>

Friends

std::shared_ptr< web::http::client::tools::EventSourceEventSource (const std::string &scheme, const SocketAddress &socketAddress, const std::string &path)

Additional Inherited Members

Public Types inherited from web::http::client::tools::EventSourceT< web::http::legacy::un::Client >
using MasterRequest
using Request
using Response
using SocketConnection
using SocketAddress
using Config
Public Types inherited from web::http::client::tools::EventSource
enum class  ReadyState : int { CONNECTING = 0 , OPEN = 1 , CLOSED = 2 }
Protected Member Functions inherited from web::http::client::tools::EventSourceT< web::http::legacy::un::Client >
 EventSourceT ()
void init (const std::string &scheme, const SocketAddress &socketAddress, const std::string &path)
Protected Member Functions inherited from web::http::client::tools::EventSource
 EventSource ()
Protected Attributes inherited from web::http::client::tools::EventSource
std::shared_ptr< SharedStatesharedState

Detailed Description

Definition at line 56 of file EventSource.h.

Member Typedef Documentation

◆ Super

Constructor & Destructor Documentation

◆ ~EventSource()

web::http::legacy::un::EventSource::~EventSource ( )
inlineoverridevirtual

Reimplemented from web::http::client::tools::EventSource.

Definition at line 68 of file EventSource.h.

68 {
69 }

◆ EventSource

std::shared_ptr< web::http::client::tools::EventSource > EventSource ( const std::string & scheme,
const SocketAddress & socketAddress,
const std::string & path )
friend

The documentation for this class was generated from the following file: