aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/include
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2022-02-18 10:12:43 +0100
committerPer Larsson <[email protected]>2022-02-18 10:12:43 +0100
commit3a64ffe3595c20f82de876a90f026dcc36c75258 (patch)
tree477bad05f41444a99e56378fa0e2c18d98c0f09f /zenhttp/include
parentRoute websocket message. (diff)
downloadzen-3a64ffe3595c20f82de876a90f026dcc36c75258.tar.xz
zen-3a64ffe3595c20f82de876a90f026dcc36c75258.zip
Web socket client is shared between I/O thead and client.
Diffstat (limited to 'zenhttp/include')
-rw-r--r--zenhttp/include/zenhttp/websocket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenhttp/include/zenhttp/websocket.h b/zenhttp/include/zenhttp/websocket.h
index c08affb98..908b24636 100644
--- a/zenhttp/include/zenhttp/websocket.h
+++ b/zenhttp/include/zenhttp/websocket.h
@@ -72,7 +72,7 @@ public:
virtual void On(WebSocketEvent Evt, EventCallback&& Cb) = 0;
virtual void OnMessage(MessageCallback&& Cb) = 0;
- static std::unique_ptr<WebSocketClient> Create(asio::io_context& IoCtx);
+ static std::shared_ptr<WebSocketClient> Create(asio::io_context& IoCtx);
};
struct WebSocketMessageHeader