Skip to content

Instantly share code, notes, and snippets.

View loic-moriame's full-sized avatar

Loïc Moriamé loic-moriame

View GitHub Profile
@loic-moriame
loic-moriame / app.js
Last active December 21, 2015 07:58 — forked from dskanth/app.js
Update script to Express 3.3.x
var port = 3000,
express = require('express'),
io = require('socket.io').listen(app.listen(port));
// routing
app.get('/', function (req, res) {
res.sendfile(__dirname + '/chat.html');
});
// usernames which are currently connected to the chat