diff --git a/websocketpp/connection.hpp b/websocketpp/connection.hpp index 134e940f39..8a965f407f 100644 --- a/websocketpp/connection.hpp +++ b/websocketpp/connection.hpp @@ -957,6 +957,21 @@ public: transport_con_type::set_handle(hdl); } + /// Get a message buffer + /** + * @internal + * + * Warning: This is not guaranteed to be part of the public release API + * + * Message buffers are used to store message payloads and other message + * metadata. + * + * @return A new message. + */ + message_ptr get_message() const { + return m_msg_manager->get_message(); + } + void start(); void read_handshake(size_t num_bytes);