multy-stub/server/routers/hub-video/index.js

12 lines
192 B
JavaScript
Raw Normal View History

2023-08-01 13:14:02 +03:00
const { getIo } = require('../../io')
const io = getIo()
io.on('connection', (socket) => {
socket.on('play', () => {
socket.broadcast.emit('play')
})
})
console.log('test')