| 1 | // |
| 2 | // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) |
| 3 | // |
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 6 | // |
| 7 | // Official repository: https://github.com/boostorg/beast |
| 8 | // |
| 9 | |
| 10 | //[code_websocket_1b |
| 11 | |
| 12 | namespace net = boost::asio; |
| 13 | namespace beast = boost::beast; |
| 14 | using namespace boost::beast; |
| 15 | using namespace boost::beast::websocket; |
| 16 | |
| 17 | net::io_context ioc; |
| 18 | tcp_stream sock(ioc); |
| 19 | net::ssl::context ctx(net::ssl::context::tlsv12); |
| 20 | |
| 21 | //] |
| 22 | |