Child Node Framework Update : syntax fixes++

montage-api
Moe 2021-11-25 13:05:17 -08:00
parent 7ff0601776
commit 6ec1fcb9fe
2 changed files with 2 additions and 6 deletions

View File

@ -39,12 +39,7 @@ module.exports = function(s,config,lang,app,io){
});
//send data to child node function
s.cx = function(data,connectionId){
// if(senderObject){
// data.sentFrom = senderObject.id;
// childNodesConnectionIndex[connectionId].sendJson(data)
// }else{
childNodesConnectionIndex[connectionId].sendJson(data)
// }
childNodesConnectionIndex[connectionId].sendJson(data)
}
//child Node Websocket
childNodeWebsocket.on('connection', function (client, req) {

View File

@ -1,3 +1,4 @@
const fs = require('fs');
module.exports = function(s,config,lang,app,io){
function getIpAddress(req){
return (req.headers['cf-connecting-ip'] ||