rabbitmq / rabbitmq-web-stomp

Provides support for STOMP over WebSockets
Other
89 stars 26 forks source link

Maintenance mode event support #125

Closed michaelklishin closed 4 years ago

michaelklishin commented 4 years ago

This makes the refs predictable and easy to compute from a listener record. Then suspending all listeners becomes a lot simpler.

We also introduce a way to list and shut down all Web STOMP client connections. Kudos to @essen for explaining what'd be the best way to do that with Ranch.

While at it, make protocol applications clean up their listeners when they stop. This way tests and other callers that have to stop the app would not need to know anything about its listeners.

Part of rabbitmq/rabbitmq-server#2321

michaelklishin commented 4 years ago

Backported to v3.8.x.