mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
WebSocketProtocol: Remove availableEvents
from Hello
Not reasonably possible with the current structure of the `EventHandler`
This commit is contained in:
parent
680b5c470e
commit
f0d68f3eec
@ -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;
|
|
||||||
}
|
|
||||||
|
@ -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();
|
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user