From following the github code, you can likely call
connection_ptr->get_raw_socket().native_handle()
.
websocketpp::connection
inherits from websocketpp::socket::connection
, and websocket::socket::connection
provides a get_socket()
public member function that returns a reference to a Boost.Asio socket. Boost.Asio sockets provide a native_handle()
member function that returns the native socket representation.