zeromq.js icon indicating copy to clipboard operation
zeromq.js copied to clipboard

Where is CONFLATE option or equivalent behaviour?

Open SpaceMonkeyForever opened this issue 3 years ago • 1 comments

Hi there, first of all, thank you for implementing and maintaining this very useful protocol. I use it in pretty much all my apps.

I could not find CONFLATE socket option flag. Is it not implemented? I have a problem where I'm subscribing to a publisher that's bombarding me and I want to make sure that I only keep the latest message if many messages are received in a row. I believe the way to do this is to set CONFLAT on the subscriber side.

  • Where is CONFLATE option for subscriber socket?
  • Is there a better solution to make sure when publisher sends too many messages, I only keep the last message?

Thank you, spacemonkey

SpaceMonkeyForever avatar Aug 03 '22 10:08 SpaceMonkeyForever

I think you need to use the latest beta version to get the conflate option. v6.0.0-beta.6.

maximusunc avatar Oct 07 '22 20:10 maximusunc