Skip to content

Issue 60 - Update samples to use Factory Profile 10_5 - #61

Merged
aaron-613 merged 2 commits into
masterfrom
issue-60
Jan 18, 2025
Merged

aaron-613 merged 2 commits into
masterfrom
issue-60

Conversation

@aaron-613

Copy link
Copy Markdown
Contributor

This should have been done a long time ago. Factory profile 10_5 changed how raw binary payloads were encoded when using a BytesMessage... moving from a latin-1 encoded String to a UInt8Array. These updates should make it easier for users of our JS API to use current best practices and help reduce confusion.

Additionally, included some helpful "if/else" blocks in various consumer or subscriber apps for checking if a TextMessage (SDT) was received, or a BytesMessage, and handling it properly. And also on the publisher side, including example lines for publishing either a raw BytesMessage or an SDT TextMessage.

@TamimiGitHub

Copy link
Copy Markdown
Contributor

Looks good to me overall! yeah I wonder why it wasnt updated before - thanks for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants