WebSocketProtocol: Remove availableEvents from Hello

Not reasonably possible with the current structure of the `EventHandler`
This commit is contained in:
tt2468 2021-05-13 17:48:10 -07:00
parent 680b5c470e
commit f0d68f3eec
3 changed files with 0 additions and 9 deletions

View File

@ -242,10 +242,3 @@ std::vector<std::string> WebSocketProtocol::GetRequestList()
return requestHandler.GetRequestList(); return requestHandler.GetRequestList();
} }
std::vector<std::string> WebSocketProtocol::GetEventList()
{
std::vector<std::string> ret;
return ret;
}

View File

@ -21,5 +21,4 @@ namespace WebSocketProtocol {
ProcessResult ProcessMessage(SessionPtr session, json incomingMessage); ProcessResult ProcessMessage(SessionPtr session, json incomingMessage);
std::vector<std::string> GetRequestList(); std::vector<std::string> GetRequestList();
std::vector<std::string> GetEventList();
} }

View File

@ -273,7 +273,6 @@ void WebSocketServer::onOpen(websocketpp::connection_hdl hdl)
helloMessage["obsWebSocketVersion"] = OBS_WEBSOCKET_VERSION; helloMessage["obsWebSocketVersion"] = OBS_WEBSOCKET_VERSION;
helloMessage["rpcVersion"] = OBS_WEBSOCKET_RPC_VERSION; helloMessage["rpcVersion"] = OBS_WEBSOCKET_RPC_VERSION;
helloMessage["availableRequests"] = WebSocketProtocol::GetRequestList(); helloMessage["availableRequests"] = WebSocketProtocol::GetRequestList();
helloMessage["availableEvents"] = WebSocketProtocol::GetEventList();
if (AuthenticationRequired) { if (AuthenticationRequired) {
session->SetSecret(AuthenticationSecret); session->SetSecret(AuthenticationSecret);
std::string sessionChallenge = Utils::Crypto::GenerateSalt(); std::string sessionChallenge = Utils::Crypto::GenerateSalt();