How to use the engine.io.attach function in engine

To help you get started, we’ve selected a few engine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bigcompany / resources / mesh / index.js View on Github external
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);
  }
};
github leemason / rebound-server / src / index.js View on Github external
attachServer(){
        debug('Attaching To Engine.io Server.');
        this.engine = engine.attach(this.server, {
            path: '/rebound'
        });
    }

engine

Template engine based on Lo-Dash template, but adds features like the ability to register helpers and more easily set data to be used as context in templates.

MIT
Latest version published 5 years ago

Package Health Score

51 / 100
Full package analysis