sse icon indicating copy to clipboard operation
sse copied to clipboard

client.Unsubscribe doesn't seem to do anything

Open jollyra opened this issue 5 years ago • 1 comments

If I call SubscribeChan, then immediately call Unsubscribe on my events channel I can still receive events as normal. I discovered this while implementing reconnection logic if a stream goes silent by calling Unsubscribe then SubscribeChan. After doing this I will receive duplicate events on my channel. If I repeat the process 10 more times, I will receive 10 duplicate events on the channel for each event that the server sends.

jollyra avatar Apr 23 '21 20:04 jollyra

Hello, I would like to bring this to your attention. When I call the Unsubscribe function, the thread is brought to a halt and never ends. Can we get some assistance, it's critical to be able to unsubscribe to a stream.

abdulrabbani00 avatar Jun 21 '22 17:06 abdulrabbani00