Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function attach() {
//
// Remark: mesh.server is the same as http.server
//
mesh.server = engine.attach(resource.http.server);
mesh.server.on('connection', function(socket){
mesh.downlink(socket, function(err, result){
if (err) {
throw err;
}
});
});
callback(null, mesh.server);
}
};
attachServer(){
debug('Attaching To Engine.io Server.');
this.engine = engine.attach(this.server, {
path: '/rebound'
});
}