diff options
author | Jérémie Lesage <jeremie.lesage@jeci.fr> | 2018-06-21 15:32:53 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2018-06-29 18:10:03 +0100 |
commit | f084ea53f6b659316e30af31e898aaf77d622add (patch) | |
tree | 695991235111ccb66fb2c6fc430e8dc3de9cdbde /wsd/Admin.hpp | |
parent | Cell borders: Implement the 'More...' button. (diff) | |
download | online-f084ea53f6b659316e30af31e898aaf77d622add.tar.gz online-f084ea53f6b659316e30af31e898aaf77d622add.zip |
Ensure all sessions have a sessionId and are subscribed.
Simplify constructors, and factor out subscription code.
Change-Id: I4f3ed1eb06abec193d6db1f7c78815ffe1e1b5aa
Diffstat (limited to 'wsd/Admin.hpp')
-rw-r--r-- | wsd/Admin.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wsd/Admin.hpp b/wsd/Admin.hpp index ed9ca55f8c..d5b1aab79c 100644 --- a/wsd/Admin.hpp +++ b/wsd/Admin.hpp @@ -23,8 +23,10 @@ class Admin; class AdminSocketHandler : public WebSocketHandler { public: + /// Client connection to remote amdin socket AdminSocketHandler(Admin* adminManager); + /// Connection from remote admin socket AdminSocketHandler(Admin* adminManager, const std::weak_ptr<StreamSocket>& socket, const Poco::Net::HTTPRequest& request); @@ -34,6 +36,8 @@ public: static bool handleInitialRequest(const std::weak_ptr<StreamSocket> &socket, const Poco::Net::HTTPRequest& request); + static void subscribeAsync(const std::shared_ptr<AdminSocketHandler> handler); + private: /// Sends text frames simply to authenticated clients. void sendTextFrame(const std::string& message); |