JustinTulloss / zeromq.node

Node.js bindings to the zeromq library
MIT License
1.65k stars 286 forks source link

How to receive messages with multiple frames #597

Open mango009 opened 6 years ago

mango009 commented 6 years ago

I cannot seem to be able to find a way to receive messages with multiple frames. I used a dealer-dealer pattern and the peer send two frames with ZMQ_SNDMORE in the first send.

Do I get a contiguous Buffer on the receiver side? I'm getting random length of frame data in my socket.on('message) callback.

Thanks for any help