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:
parent
6629a86339
commit
7e13633499
76 changed files with 124 additions and 80 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue