14 lines
No EOL
336 B
JavaScript
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;
|
|
}
|
|
} |