summaryrefslogtreecommitdiff
path: root/include/vm_websocket.hpp
diff options
context:
space:
mode:
authorzhanghch05 <zhanghch05@inspur.com>2021-10-21 09:07:57 +0300
committerEd Tanous <ed@tanous.net>2022-03-29 04:56:16 +0300
commit7772638ea777820234e6004ee63dc558e629e35e (patch)
tree7c3c82565e74370751efd0308199ee4039add782 /include/vm_websocket.hpp
parent1c8252799b1c97fad5b05c5746ec512292a1f66c (diff)
downloadbmcweb-7772638ea777820234e6004ee63dc558e629e35e.tar.xz
Remove AsyncResp from openHandler
This change, moving the openHandler back to only supporting websocket disconnects and not 404s.Because AsyncResp is removed from openHandler. Tested: (from previous commit) Opened KVM in webui-vue and it works. Signed-off-by: zhanghaicheng <zhanghch05@inspur.com> Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I793f05836aeccdc275b7aaaeede41b3a2c276595
Diffstat (limited to 'include/vm_websocket.hpp')
-rw-r--r--include/vm_websocket.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp
index 5adf303e89..6c97f85b13 100644
--- a/include/vm_websocket.hpp
+++ b/include/vm_websocket.hpp
@@ -165,8 +165,7 @@ inline void requestRoutes(App& app)
BMCWEB_ROUTE(app, "/vm/0/0")
.privileges({{"ConfigureComponents", "ConfigureManager"}})
.websocket()
- .onopen([](crow::websocket::Connection& conn,
- const std::shared_ptr<bmcweb::AsyncResp>&) {
+ .onopen([](crow::websocket::Connection& conn) {
BMCWEB_LOG_DEBUG << "Connection " << &conn << " opened";
if (session != nullptr)