How can we send bulk messages using nodejs?

I am sending around 100 messages with confirmed delivery. But Acknowledgement is delayed because of which I get
OperationError: Guaranteed Message Window Closed
after sending 50 messages.

Is there a way to send more number of messages with guaranteed delivery?

Code: solace-samples-nodejs/src/basic-samples/ConfirmedPublish.js at master · SolaceSamples/solace-samples-nodejs · GitHub

Hey @Driviz, thanks for posting :smile:

This line in the code sets the # of messages artificially so that the demonstration of sending messages is capped when users try it out themselves https://github.com/SolaceSamples/solace-samples-nodejs/blob/master/src/basic-samples/ConfirmedPublish.js#L34

If you show me your code I can take a look if you’ve modified things beyond what you’ve linked.