use protocol field encoder

This commit is contained in:
Shelikhoo 2024-09-17 16:53:26 +01:00 committed by WofWca
parent fb57ad79f5
commit 00da3c95ed
3 changed files with 12 additions and 7 deletions

View file

@ -152,7 +152,7 @@ func DecodeClientPollResponse(data []byte) (*ClientPollResponse, error) {
}
type ClientConnectionMetadata struct {
ClientID string `json:"client_id"`
ClientID []byte `json:"client_id"`
}
func (meta *ClientConnectionMetadata) EncodeConnectionMetadata() (string, error) {