broadcaster icon indicating copy to clipboard operation
broadcaster copied to clipboard

Unsubscribing issue in Broadcast class

Open mdi80 opened this issue 2 years ago • 0 comments

Hi,

I was working with your Broadcast class and noticed a bug related to websocket disconnection. In the subscribe method of the Broadcast class, when a user disconnects from the websocket, the code after yield Subscriber(queue) will never execute. This could potentially lead to increased memory usage if items are never removed from the _subscribers dictionary.

Thank you for your great code!

mdi80 avatar Mar 07 '24 13:03 mdi80