Skip to content

Commit

Permalink
Add schemaEncoding to mcap-play channel registration (#591)
Browse files Browse the repository at this point in the history
This conveys the schema encoding to the client allowing it to use the
correct parser to handle the schema.
  • Loading branch information
defunctzombie authored Nov 15, 2023
1 parent 393ddae commit cada881
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions typescript/ws-protocol-examples/src/examples/mcap-play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ async function main(file: string, options: { loop: boolean; rate: number }): Pro
topic: record.topic,
schemaName: schema.name,
encoding: record.messageEncoding,
schemaEncoding: schema.encoding,
schema:
schema.encoding === "protobuf"
? Buffer.from(schema.data).toString("base64")
Expand Down

0 comments on commit cada881

Please sign in to comment.