WebSocketProtocol: Fix Identified OpCode responses

This commit is contained in:
tt2468 2021-08-28 07:10:03 -07:00 committed by GitHub
parent 2f1ca4a066
commit a37cfb3e5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ void WebSocketProtocol::ProcessMessage(SessionPtr session, WebSocketProtocol::Pr
Utils::Platform::SendTrayNotification(QSystemTrayIcon::Information, title, body); Utils::Platform::SendTrayNotification(QSystemTrayIcon::Information, title, body);
} }
ret.result["op"] = 3; ret.result["op"] = 2;
ret.result["d"]["negotiatedRpcVersion"] = session->RpcVersion(); ret.result["d"]["negotiatedRpcVersion"] = session->RpcVersion();
} return; } return;
case 3: { // Reidentify case 3: { // Reidentify
@ -144,7 +144,7 @@ void WebSocketProtocol::ProcessMessage(SessionPtr session, WebSocketProtocol::Pr
return; return;
} }
ret.result["op"] = 3; ret.result["op"] = 2;
ret.result["d"]["negotiatedRpcVersion"] = session->RpcVersion(); ret.result["d"]["negotiatedRpcVersion"] = session->RpcVersion();
} return; } return;
case 6: { // Request case 6: { // Request