1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added Firebase Cloud Messaging Relay.

This commit is contained in:
Ylian Saint-Hilaire 2021-02-02 23:31:44 -08:00
parent 6629a86339
commit 7e13633499
76 changed files with 124 additions and 80 deletions

View file

@ -471,7 +471,7 @@ function CreateMeshRelayEx(parent, ws, req, domain, user, cookie) {
} catch (ex) { console.log(ex); }
}
} else {
if ((typeof data == 'string') && (obj.pmt != null)) {
if ((typeof data == 'string') && (obj.node != null) && (obj.node.pmt != null)) {
var command = null;
try { command = JSON.parse(data); } catch (ex) { return; }
if ((typeof command != 'object') || (command.action != 'chat') || (typeof command.msg != 'string') || (command.msg == '')) return;