Skip to content

Instantly share code, notes, and snippets.

Last active August 1, 2019 01:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
var app = require('express')();
var http = require('http').createServer(app);
var io = require('')(http);
io.on('connection', function(socket){
socket.on("reload-table", function(){
console.log('a user connected');
socket.on('disconnect', function(){
console.log('user disconnected');
http.listen(3000, '' ,function(){
console.log('listening on *:3000');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment