coders51 / rabbitmq-stream-js-client

rabbitmq-stream-js-client
MIT License
34 stars 5 forks source link

Close publishers and consumers upon metadata update #185

Closed tarzacodes closed 5 months ago

tarzacodes commented 9 months ago

When we receive a Metadata Update message from the server regarding a stream, we should close all the consumers and publishers of that stream: the server will already consider them to be dead, since the topology of that stream might have changed. The user should be notified of such event, we should emit a connection_closed event.