-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ably-go should not convert []byte
messages to strings
#574
Comments
➤ Automation for Jira commented: The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3196 |
➤ Amnon Cohen commented: The problem is in the codec, as you can see in this failing test:
|
In github.com/ugorji/go/[email protected]/msgpack.go:494
which calls
|
I added a bug report to ugorji/go#387 |
See #581 as a sample fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code below send a message of type
[]byte
.But the subscriber receives the message of type
string
.https://go.dev/play/p/VUqZbF7B6Wv
According to the Spec
(RSL6a) All messages received will be decoded automatically based on the encoding field and the payloads will be converted into the format they were originally sent using i.e. binary, string, or JSON
In this case the message was sent as
[]byte
so should have been received as as[]byte
.┆Issue is synchronized with this Jira Task by Unito
The text was updated successfully, but these errors were encountered: