From 4c2d382b34cc54a44d933bbcfd30fcee9c9e8ba2 Mon Sep 17 00:00:00 2001 From: set Date: Sat, 14 Mar 2026 19:29:36 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B2=D0=BE=D0=B4=D0=B0=20=D0=B2=20JSON?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boot/boot.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/boot/boot.go b/boot/boot.go index 69333bf..726b046 100644 --- a/boot/boot.go +++ b/boot/boot.go @@ -46,9 +46,8 @@ func OnLocalICECandidate(roomID string, peerID string, candidate webrtc.ICECandi buffer.PutBytes([]byte(roomID)) buffer.PutUint32(uint32(len([]byte(peerID)))) buffer.PutBytes([]byte(peerID)) - candidateBytes := []byte(candidate.Candidate) - buffer.PutUint32(uint32(len(candidateBytes))) - buffer.PutBytes(candidateBytes) + buffer.PutUint32(uint32(len([]byte(jsonCandidate)))) + buffer.PutBytes([]byte(jsonCandidate)) buffer.Flip() room.Server.Socket.WriteMessage(websocket.BinaryMessage, buffer.Bytes()) }