diff options
Diffstat (limited to 'crow/include/crow/websocket.h')
-rw-r--r-- | crow/include/crow/websocket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crow/include/crow/websocket.h b/crow/include/crow/websocket.h index 1596b8d80b..c435d336b7 100644 --- a/crow/include/crow/websocket.h +++ b/crow/include/crow/websocket.h @@ -27,7 +27,7 @@ struct Connection : std::enable_shared_from_this<Connection> virtual void sendText(const boost::beast::string_view msg) = 0; virtual void sendText(std::string&& msg) = 0; virtual void close(const boost::beast::string_view msg = "quit") = 0; - virtual boost::asio::io_service& getIoService() = 0; + virtual boost::asio::io_context& getIoService() = 0; virtual ~Connection() = default; void userdata(void* u) @@ -65,7 +65,7 @@ template <typename Adaptor> class ConnectionImpl : public Connection BMCWEB_LOG_DEBUG << "Creating new connection " << this; } - boost::asio::io_service& getIoService() override + boost::asio::io_context& getIoService() override { return adaptor.getIoService(); } |