postwait / node-amqp

[UNMAINTAINED] node-amqp is an AMQP client for nodejs
MIT License
1.7k stars 357 forks source link

Batch queue subscribe/unsubscribe #453

Open dolftax opened 7 years ago

dolftax commented 7 years ago

The connection between front-end and server is via websocket.

On every connect event, server subscribes to 5 queues. Each returns its own cTags. On disconnect, how to unsubscribe from all those queues. The issue here is the tight coupling between queue object and cTags. Is there a way to unsubscribe from all queues by passing an array of cTags? I don't think that's possible. Is there a workaround?