change function name, language

This commit is contained in:
Juliane Holzt 2019-07-25 14:47:47 +02:00
parent 635870ba4b
commit e3ff9c013e
No known key found for this signature in database
GPG Key ID: 590AE197EF123736
3 changed files with 7 additions and 7 deletions

@ -36,7 +36,7 @@ QHash<QString, HandlerResponse(*)(WSRequestHandler*)> WSRequestHandler::messageM
{ "SetFilenameFormatting", WSRequestHandler::HandleSetFilenameFormatting },
{ "GetFilenameFormatting", WSRequestHandler::HandleGetFilenameFormatting },
{ "BroadcastWebSocketMessage", WSRequestHandler::HandleBroadcastWebSocketMessage },
{ "BroadcastCustomMessage", WSRequestHandler::HandleBroadcastCustomMessage },
{ "SetCurrentScene", WSRequestHandler::HandleSetCurrentScene },
{ "GetCurrentScene", WSRequestHandler::HandleGetCurrentScene },

@ -74,7 +74,7 @@ class WSRequestHandler : public QObject {
static HandlerResponse HandleSetFilenameFormatting(WSRequestHandler* req);
static HandlerResponse HandleGetFilenameFormatting(WSRequestHandler* req);
static HandlerResponse HandleBroadcastWebSocketMessage(WSRequestHandler* req);
static HandlerResponse HandleBroadcastCustomMessage(WSRequestHandler* req);
static HandlerResponse HandleSetCurrentScene(WSRequestHandler* req);
static HandlerResponse HandleGetCurrentScene(WSRequestHandler* req);

@ -232,17 +232,17 @@ HandlerResponse WSRequestHandler::HandleGetStats(WSRequestHandler* req) {
}
/**
* Broadcast some data to all connected WebSocket clients
* Broadcast custom message to all connected WebSocket clients
*
* @param {String} `realm` Some Identifier to be choosen by the client
* @param {String} `realm` Identifier to be choosen by the client
* @param {Object} `data` User-defined data
*
* @api general
* @name BroadcastWebSocketMessage
* @name BroadcastCustomMessage
* @category general
* @since 4.7.0
*/
HandlerResponse WSRequestHandler::HandleBroadcastWebSocketMessage(WSRequestHandler* req) {
HandlerResponse WSRequestHandler::HandleBroadcastCustomMessage(WSRequestHandler* req) {
if (!req->hasField("realm") || !req->hasField("data")) {
return req->SendErrorResponse("missing request parameters");
}
@ -264,7 +264,7 @@ HandlerResponse WSRequestHandler::HandleBroadcastWebSocketMessage(WSRequestHandl
obs_data_set_string(broadcastData, "realm", realm.toUtf8().constData());
obs_data_set_obj(broadcastData, "data", data);
events->broadcastUpdate("BroadcastWebSocketMessage", broadcastData);
events->broadcastUpdate("CustomMessage", broadcastData);
return req->SendOKResponse();
}