node-go/packages/play-node-go/server/socket.js
2020-02-05 16:44:31 -08:00

14 lines
No EOL
336 B
JavaScript

// TODO const someSocketLogic = require('./middleware/socketssockets/...');
module.exports = {
enableSocket: io => {
// io.on('connection', () => console.log('connected'))
io.on('connection', ()=> {
io.emit('connected', {message: 'socket connected'});
})
// TODO io = someSocketLogic(io);
return io;
}
}