6 #ifndef KAGOME_CORE_API_TRANSPORT_IMPL_WS_LISTENER_IMPL_HPP 7 #define KAGOME_CORE_API_TRANSPORT_IMPL_WS_LISTENER_IMPL_HPP 18 class AppStateManager;
27 public std::enable_shared_from_this<WsListenerImpl> {
32 const std::shared_ptr<application::AppStateManager> &app_state_manager,
33 std::shared_ptr<Context> context,
40 bool prepare()
override;
43 bool start()
override;
51 void acceptOnce()
override;
75 #endif // KAGOME_CORE_API_TRANSPORT_IMPL_WS_LISTENER_IMPL_HPP std::atomic< uint32_t > active_connections_
server which listens for incoming connection, accepts connections making session from socket ...
const SessionImpl::Configuration session_config_
std::unique_ptr< NewSessionHandler > on_new_session_
std::atomic< Session::SessionId > next_session_id_
std::unique_ptr< Registry > RegistryPtr
RegistryPtr createRegistry()
std::shared_ptr< Context > context_
std::unique_ptr< Acceptor > acceptor_
server which listens for incoming connection, accepts connections making session from socket ...
std::function< void(const std::shared_ptr< Session > &)> NewSessionHandler
std::shared_ptr< soralog::Logger > Logger
std::shared_ptr< SessionImpl > new_session_
metrics::Counter * opened_session_
const uint32_t max_ws_connections_
metrics::Counter * closed_session_
A counter metric to represent a monotonically increasing value.
const Configuration config_