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
 
 EventSourceT (EventSourceT &&) noexcept=delete
 
EventSourceToperator= (const EventSourceT &)=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 &url)
 

Additional Inherited Members

- Public Types inherited from web::http::client::tools::EventSourceT< web::http::legacy::un::Client >
using MasterRequest = typename Client::MasterRequest
 
using Request = typename Client::Request
 
using Response = typename Client::Response
 
using SocketConnection = typename Client::SocketConnection
 
- 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 &url)
 
- 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 69 of file EventSource.h.

69 {
70 }

Friends And Related Symbol Documentation

◆ EventSource

std::shared_ptr< web::http::client::tools::EventSource > EventSource ( const std::string &  url)
friend

Definition at line 72 of file EventSource.h.

72 {
73 std::shared_ptr<class EventSource> eventSource = std::make_shared<class EventSource>();
74 eventSource->init(url);
75
76 return eventSource;
77 }

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