From 6e0bc74fb82382394e45c140b7557c3c805040f4 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Wed, 29 Jan 2025 13:07:50 +0000 Subject: [PATCH] add comment for ClientConnectionMetadata --- common/messages/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/messages/client.go b/common/messages/client.go index 637e771..bde9781 100644 --- a/common/messages/client.go +++ b/common/messages/client.go @@ -151,6 +151,9 @@ func DecodeClientPollResponse(data []byte) (*ClientPollResponse, error) { return &message, nil } +// ClientConnectionMetadata is a struct that contains metadata about a snowflake connection between client and server +// It will be sent from the client to the proxy in WebRTC data channel protocol string +// The proxy will then send the metadata to the server in the protocol get parameter of the WebSocket connection type ClientConnectionMetadata struct { ClientID []byte `json:"client_id"` }