SNode.C
Loading...
Searching...
No Matches
web::http::client::tools::EventSource::SharedState Struct Reference

#include <EventSource.h>

Collaboration diagram for web::http::client::tools::EventSource::SharedState:

Public Attributes

std::list< std::function< void(const MessageEvent &)> > onMessageListener
 
std::map< std::string, std::list< std::function< void(const MessageEvent &)> > > onEventListener
 
std::list< std::function< void()> > onOpenListener
 
std::list< std::function< void()> > onErrorListener
 
std::string pending
 
std::string data
 
std::string type
 
std::string idBuf
 
std::string lastId
 
uint32_t retry = 3000
 
ReadyState ready = ReadyState::CONNECTING
 
std::string scheme
 
std::string host
 
uint16_t port = 80
 
std::string origin
 
std::string path
 

Detailed Description

Definition at line 99 of file EventSource.h.

Member Data Documentation

◆ data

std::string web::http::client::tools::EventSource::SharedState::data

◆ host

std::string web::http::client::tools::EventSource::SharedState::host

◆ idBuf

std::string web::http::client::tools::EventSource::SharedState::idBuf

◆ lastId

std::string web::http::client::tools::EventSource::SharedState::lastId

◆ onErrorListener

std::list<std::function<void()> > web::http::client::tools::EventSource::SharedState::onErrorListener

Definition at line 103 of file EventSource.h.

Referenced by web::http::client::tools::EventSource::onError().

◆ onEventListener

std::map<std::string, std::list<std::function<void(const MessageEvent&)> > > web::http::client::tools::EventSource::SharedState::onEventListener

◆ onMessageListener

std::list<std::function<void(const MessageEvent&)> > web::http::client::tools::EventSource::SharedState::onMessageListener

◆ onOpenListener

std::list<std::function<void()> > web::http::client::tools::EventSource::SharedState::onOpenListener

Definition at line 102 of file EventSource.h.

Referenced by web::http::client::tools::EventSource::onOpen().

◆ origin

std::string web::http::client::tools::EventSource::SharedState::origin

◆ path

std::string web::http::client::tools::EventSource::SharedState::path

◆ pending

std::string web::http::client::tools::EventSource::SharedState::pending

◆ port

uint16_t web::http::client::tools::EventSource::SharedState::port = 80

◆ ready

ReadyState web::http::client::tools::EventSource::SharedState::ready = ReadyState::CONNECTING

Definition at line 112 of file EventSource.h.

Referenced by web::http::client::tools::EventSource::readyState().

◆ retry

uint32_t web::http::client::tools::EventSource::SharedState::retry = 3000

◆ scheme

std::string web::http::client::tools::EventSource::SharedState::scheme

◆ type

std::string web::http::client::tools::EventSource::SharedState::type

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