added basic socketio

This commit is contained in:
2017-03-13 13:43:15 +01:00
parent 9d2ab052a4
commit 34a70b4d41
4 changed files with 24 additions and 9 deletions

View File

@ -21,6 +21,13 @@ app.set('port', port);
var server = http.createServer(app);
/**
* Socket.io
*/
var io = app.io;
io.attach( server );
/**
* Listen on provided port, on all network interfaces.
*/