forked from bro-students/multy-stub
12 lines
192 B
JavaScript
12 lines
192 B
JavaScript
|
const { getIo } = require('../../io')
|
||
|
|
||
|
const io = getIo()
|
||
|
|
||
|
io.on('connection', (socket) => {
|
||
|
socket.on('play', () => {
|
||
|
socket.broadcast.emit('play')
|
||
|
})
|
||
|
})
|
||
|
|
||
|
console.log('test')
|