{"size": 296, "ext": "js", "max_stars_repo_path": "examples/server.js", "max_stars_repo_name": "vpalmisano/express-socket.io-router", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "examples/server.js", "max_issues_repo_name": "vpalmisano/express-socket.io-router", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "examples/server.js", "max_forks_repo_name": "vpalmisano/express-socket.io-router", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.7692307692, "max_line_length": 51, "alphanum_fraction": 0.6283783784}
const SocketIO = require('socket.io');
const ExpressSocketIO = require('..');

var io = new SocketIO(8080);
ExpressSocketIO(io);

io.register('test:path', function(req, res, next){
    console.log('request:', req.query, req.socket);
    res.send({
        query: req.query
    });
    next();
});