diff options
Diffstat (limited to 'http/websocket.hpp')
-rw-r--r-- | http/websocket.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/http/websocket.hpp b/http/websocket.hpp index 30a9b9f4b5..74bce581d2 100644 --- a/http/websocket.hpp +++ b/http/websocket.hpp @@ -29,6 +29,11 @@ struct Connection : std::enable_shared_from_this<Connection> req(reqIn.req), userName{std::move(user)}, userdataPtr(nullptr) {} + Connection(const Connection&) = delete; + Connection(Connection&&) = delete; + Connection& operator=(const Connection&) = delete; + Connection& operator=(const Connection&&) = delete; + virtual void sendBinary(const std::string_view msg) = 0; virtual void sendBinary(std::string&& msg) = 0; virtual void sendText(const std::string_view msg) = 0; |