Skip to content

Commit

Permalink
Add plugin version to OpenDataChannel request
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangtao-Hua committed Oct 10, 2024
1 parent 6384c67 commit 9b57835
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/datachannel/streaming.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func (dataChannel *DataChannel) FinalizeDataChannelHandshake(log log.T, tokenVal
RequestId: aws.String(uid),
TokenValue: aws.String(tokenValue),
ClientId: aws.String(dataChannel.ClientId),
ClientVersion: aws.String(version.Version),
}

var openDataChannelInputBytes []byte
Expand Down
3 changes: 3 additions & 0 deletions src/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ type OpenDataChannelInput struct {

// ClientId is a required field
ClientId *string `json:"ClientId" min:"1" type:"string" required:"true"`

// ClientVersion is a required field
ClientVersion *string `json:"ClientVersion" min:"1" type:"string" required:"true"`
}

0 comments on commit 9b57835

Please sign in to comment.