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
Hi, I need to receive from stomp server a message with binary payload but I only found functions readString and readEmptyBody at IncomingFrame.
This lib supports this kind of message? If yes, is possible convert the stream to node Buffer?
The text was updated successfully, but these errors were encountered:
Yes it's possible to receive a binary payload. IncomingFrame implements stream.Readable interface; use the readable.read([size]) method to read and return a chunk of the payload as a Buffer object. To get the entire payload as a single buffer, concatenate each chunk buffer until the end event is emitted on the message.
Hi, I need to receive from stomp server a message with binary payload but I only found functions
readString
andreadEmptyBody
atIncomingFrame
.This lib supports this kind of message? If yes, is possible convert the stream to node Buffer?
The text was updated successfully, but these errors were encountered: