Skip to content

Instantly share code, notes, and snippets.

@AntonioErdeljac
Created October 31, 2017 00:19
Show Gist options
  • Save AntonioErdeljac/5eb69959e836a8b516fc6f5ed2567a0d to your computer and use it in GitHub Desktop.
Save AntonioErdeljac/5eb69959e836a8b516fc6f5ed2567a0d to your computer and use it in GitHub Desktop.
var socket = require('socket.io');
io = socket(server);
io.on('connection', (socket) => {
console.log(socket.id);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment