|
| PlainWsSession (boost::asio::ip::tcp::socket &&socket, std::string ip, std::reference_wrapper< util::TagDecoratorFactory const > tagFactory, std::reference_wrapper< dosguard::DOSGuardInterface > dosGuard, std::shared_ptr< HandlerType > const &handler, boost::beast::flat_buffer &&buffer, bool isAdmin, std::uint32_t maxSendingQueueSize) |
| Create a new non-secure websocket session.
|
|
StreamType & | ws () |
|
| WsBase (std::string ip, std::reference_wrapper< util::TagDecoratorFactory const > tagFactory, std::reference_wrapper< dosguard::DOSGuardInterface > dosGuard, std::shared_ptr< HandlerType > const &handler, boost::beast::flat_buffer &&buffer, std::uint32_t maxSendingQueueSize) |
|
PlainWsSession< HandlerType > & | derived () |
|
void | doWrite () |
|
void | onWrite (boost::system::error_code ec, std::size_t) |
|
void | maybeSendNext () |
|
void | send (std::shared_ptr< std::string > msg) override |
| Send a message to the client.
|
|
void | send (std::string &&msg, http::status) override |
| Send a message to the client.
|
|
SubscriptionContextPtr | makeSubscriptionContext (util::TagDecoratorFactory const &factory) override |
| Get the subscription context for this connection.
|
|
void | run (http::request< http::string_body > req) |
| Accept the session asynchroniously.
|
|
void | onAccept (boost::beast::error_code ec) |
|
void | doRead () |
|
void | onRead (boost::beast::error_code ec, std::size_t bytesTransferred) |
|
| ConnectionBase (util::TagDecoratorFactory const &tagFactory, std::string ip) |
| Create a new connection base.
|
|
bool | dead () |
| Indicates whether the connection had an error and is considered dead.
|
|
bool | isAdmin () const |
| Indicates whether the connection has admin privileges.
|
|
| Taggable (Taggable &&)=default |
|
Taggable & | operator= (Taggable &&)=default |
|
BaseTagDecorator const & | tag () const |
| Getter for tag decorator.
|
|
template<SomeServerHandler HandlerType>
class web::PlainWsSession< HandlerType >
Represents a non-secure websocket session.
Majority of the operations are handled by the base class.