Child Node Framework Update : syntax fixes++
parent
7ff0601776
commit
6ec1fcb9fe
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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'] ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue