Skip to content

Instantly share code, notes, and snippets.

@fieldAbyss
fieldAbyss / app.js
Last active March 4, 2018 05:11
# Using with Express 3/4 ES6 .ver URL:github-gist
const app = require('express')();
const server = require('http').Server(app);
const io = require('socket.io')(server);
server.listen(80);
app.get('/', (req, res) => {
res.sendfile(__dirname + '/index.html');
});