autobahn::wamp_websocketpp_websocket_transport< Config > Class Template Reference
A transport that provides websocket support using WebSocket++ https://github.com/zaphoyd/websocketpp. More...
#include <wamp_websocketpp_websocket_transport.hpp>
Inheritance diagram for autobahn::wamp_websocketpp_websocket_transport< Config >:
Public Types | |
| typedef websocketpp::client< Config > | client_type |
| typedef boost::lock_guard< boost::mutex > | scoped_lock |
Public Types inherited from autobahn::wamp_transport | |
| using | pause_handler = std::function< void()> |
| Handler to invoke when pausing transport transmission. | |
| using | resume_handler = std::function< void()> |
| Handler to invoke when resuming transport transmission. | |
Public Member Functions | |
| wamp_websocketpp_websocket_transport (client_type &client, const std::string &uri, bool debug_enabled=false) | |
| virtual bool | is_connected () const override |
| Determines if the transport is connected. More... | |
Public Member Functions inherited from autobahn::wamp_websocket_transport | |
| wamp_websocket_transport (const std::string &uri, bool debug_enabled=false) | |
| Constructs a websocket transport. More... | |
| virtual boost::future< void > | connect () override |
| Attempts to connect the transport. More... | |
| virtual boost::future< void > | disconnect () override |
| Attempts to disconnect the transport. More... | |
| virtual void | send_message (wamp_message &&message) override |
| Send the message synchronously over the transport. More... | |
| 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 needs to apply backpressure on the application. More... | |
| 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 and the application can resume sending messages. More... | |
| virtual void | pause () override |
| Pause receiving of messages. More... | |
| virtual void | resume () override |
| Resume receiving of messages. More... | |
| virtual void | attach (const std::shared_ptr< wamp_transport_handler > &handler) override |
| Attaches a handler to the transport. More... | |
| virtual void | detach () override |
| Detaches the handler currently attached to the transport. More... | |
| virtual bool | has_handler () const override |
| Determines if the transport has a handler attached. More... | |
Public Member Functions inherited from autobahn::wamp_transport | |
| virtual | ~wamp_transport ()=default |
| Default virtual destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from autobahn::wamp_websocket_transport | |
| void | receive_message (const std::string &msg) |
Protected Attributes inherited from autobahn::wamp_websocket_transport | |
| boost::promise< void > | m_connect |
| The promise that is fulfilled when the connect attempt is complete. | |
| boost::promise< void > | m_disconnect |
| The promise that is fulfilled when the disconnect attempt is complete. | |
Detailed Description
template<typename Config>
class autobahn::wamp_websocketpp_websocket_transport< Config >
A transport that provides websocket support using WebSocket++ https://github.com/zaphoyd/websocketpp.
Definition at line 61 of file wamp_websocketpp_websocket_transport.hpp.
Member Function Documentation
template<typename Config >
|
overridevirtual |
Determines if the transport is connected.
- Returns
- Whether or not the transport is connected.
Reimplemented from autobahn::wamp_websocket_transport.

Public Types inherited from
1.8.11