This commit is contained in:
Kacper Maj 2021-01-29 20:57:15 +01:00
parent f4d8087228
commit 9318d28a21

View File

@ -91,7 +91,7 @@ io.on('connection', (socket) => {
if (user) {
addVideo({ room: user.room, videoID });
io.to(user.room).emit('onPlayerState', data, time);
socket.to(user.room).emit('onPlayerState', data, time);
}
});