Closed ilaipi closed 1 year ago
use the latest version of sdk
Pulsar server is standard lone mode, version 3.1.0
maybe this is because the pulsar server.
I change to while (true) { consumer.receive() }
and then got error: already close
so maybe my pulsar client always auto closed after connected.
use bull instead.
I have similar issue. listener
parameter stops working after a couple of messages and gets more after restart, while while (true) { await consumer.receive() }
works completely as expected.
Maybe its just incomplete docs and requires a small fix, but at first sight it should work, I'm going to create new issue if once I confirm this is a case and prepare an actual reproduction
I create a consumer like this:
When I run
node test.js
, I will receive msgs if have sent some msgs.then keep the process live, I can't receive any more new msgs. and if I close the process, and re-run
node test.js
, I will got all msgs sent just now.what's wrong? thanks