You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the tip. A Buffer object does work. I was trying to send a TypedArray and the associated .buffer attribute of the TypedArray with no luck.
Doing this works: messages: Buffer.from(data.buffer)
It would be nice to have a note in the documentation like there is for consuming a binary message:
how do I publish binary data?
Set the messages attribute in the payload to a Buffer. TypedArrays such as Uint8Array are not supported and need to be converted to a Buffer.
The documentation mentions how to consume binary data. It does not say how to produce one.
Sending a buffer or Uint8Array sends only their string representation.
The text was updated successfully, but these errors were encountered: