diff --git a/websocketpp/transport/iostream/connection.hpp b/websocketpp/transport/iostream/connection.hpp index d31c991e8f..dedc32c36f 100644 --- a/websocketpp/transport/iostream/connection.hpp +++ b/websocketpp/transport/iostream/connection.hpp @@ -139,6 +139,11 @@ public: std::string get_remote_endpoint() const { return "iostream transport"; } + + /// Get the connection handle + connection_hdl get_handle() const { + return m_connection_hdl; + } protected: void init(init_handler callback) { m_alog.write(log::alevel::devel,"iostream connection init");