Новые события с пирами и комнатами, базовый форвардинг

This commit is contained in:
set
2026-03-16 17:08:56 +02:00
parent a9a1dc5895
commit e67bd3d824
5 changed files with 370 additions and 48 deletions

View File

@@ -204,10 +204,10 @@ func processData(data <-chan []byte, connection *connection.Connection) {
}
}
//Check life для проверки соединения с сервером SFU
if packetId == 0x08 {
if packetId == 0xAE {
// Подготовка ответа для клиента о том, что соединение живо
response := bytebuffer.Allocate(1)
response.Put(0x08)
response.Put(0xAE)
response.Flip()
// Отправляем ответ клиенту
connection.WriteBinary(response.Bytes())