wamp_websocket_transport.hpp
143 virtual void async_connect(const std::string& m_uri, boost::promise<void>& connect_promise) = 0;
A class that represents a wamp message in its simplest form.
Definition: wamp_message.hpp:53
virtual boost::future< void > connect() override
Attempts to connect the transport.
virtual void set_pause_handler(pause_handler &&handler) override
Set the handler to be invoked when the transport detects congestion sending to the remote peer and ne...
virtual bool is_connected() const override
Determines if the transport is connected.
virtual void send_message(wamp_message &&message) override
Send the message synchronously over the transport.
wamp_websocket_transport(const std::string &uri, bool debug_enabled=false)
Constructs a websocket transport.
Provides an abstraction for a transport to be used by the session.
Definition: wamp_transport.hpp:49
virtual bool has_handler() const override
Determines if the transport has a handler attached.
virtual void detach() override
Detaches the handler currently attached to the transport.
Definition: exceptions.hpp:37
boost::promise< void > m_disconnect
The promise that is fulfilled when the disconnect attempt is complete.
Definition: wamp_websocket_transport.hpp:158
virtual void set_resume_handler(resume_handler &&handler) override
Set the handler to be invoked when the transport detects congestion has subsided on the remote peer a...
std::function< void()> resume_handler
Handler to invoke when resuming transport transmission.
Definition: wamp_transport.hpp:60
std::function< void()> pause_handler
Handler to invoke when pausing transport transmission.
Definition: wamp_transport.hpp:55
virtual boost::future< void > disconnect() override
Attempts to disconnect the transport.
virtual void attach(const std::shared_ptr< wamp_transport_handler > &handler) override
Attaches a handler to the transport.
boost::promise< void > m_connect
The promise that is fulfilled when the connect attempt is complete.
Definition: wamp_websocket_transport.hpp:153
A class that represents a base websocket transport.
Definition: wamp_websocket_transport.hpp:53
virtual void resume() override
Resume receiving of messages.