server update
Some checks failed
Deploy / deploy (push) Failing after 15s

This commit is contained in:
Никита Круглицкий 2025-10-09 06:14:24 +06:00
parent 6b6a66eef4
commit fc43c8df96

View File

@ -417,7 +417,7 @@ export default function (io: SocketServer, router: types.Router) {
cb({ ok: true })
})
socket.on('updateClient', (updatedClient) => {
socket.on('updateClient', (updatedClient, cb) => {
if (updatedClient.username) {
socket.data.username = updatedClient.username
}
@ -430,6 +430,8 @@ export default function (io: SocketServer, router: types.Router) {
socket.data.outputMuted = updatedClient.outputMuted
}
cb({ ok: true })
socket.broadcast.emit('clientChanged', socket.id, socketToClient(socket))
})