node-go/server/socket.js

14 lines
No EOL
330 B
JavaScript

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