add comment for ClientConnectionMetadata

This commit is contained in:
Shelikhoo 2025-01-29 13:07:50 +00:00
parent 51eb36051c
commit 6e0bc74fb8
No known key found for this signature in database
GPG key ID: 4C9764E9FE80A3DC

View file

@ -151,6 +151,9 @@ func DecodeClientPollResponse(data []byte) (*ClientPollResponse, error) {
return &message, nil 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 { type ClientConnectionMetadata struct {
ClientID []byte `json:"client_id"` ClientID []byte `json:"client_id"`
} }