From a9a1dc589562a19d9628594ff3d661c2d8c7fdf2 Mon Sep 17 00:00:00 2001 From: set Date: Sun, 15 Mar 2026 17:55:57 +0200 Subject: [PATCH] =?UTF-8?q?Life-Check=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8=20=D1=81=D0=BE=D0=B5=D0=B4?= =?UTF-8?q?=D0=B8=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=81=20SFU?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- socket/socket.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/socket/socket.go b/socket/socket.go index 68be3f1..4363ac5 100644 --- a/socket/socket.go +++ b/socket/socket.go @@ -203,5 +203,15 @@ func processData(data <-chan []byte, connection *connection.Connection) { continue } } + //Check life для проверки соединения с сервером SFU + if packetId == 0x08 { + // Подготовка ответа для клиента о том, что соединение живо + response := bytebuffer.Allocate(1) + response.Put(0x08) + response.Flip() + // Отправляем ответ клиенту + connection.WriteBinary(response.Bytes()) + continue + } } }