centrifuge-go icon indicating copy to clipboard operation
centrifuge-go copied to clipboard

0.8.3: Subscription.Close won't unsubscribe

Open powerman opened this issue 1 year ago • 0 comments

This result in "105: already subscribed" error if we'll do this:

subs1, _ := client.NewSubscription(ch)
subs1.Subscribe()
subs1.Close()
subs2, _ := client.NewSubscription(ch)
subs2.Subscribe()

This happens because Close calls s.centrifuge.removeSubscription() before s.centrifuge.unsubscribe().

We're using Centrifugo v3, so I didn't tested is this issue actual for 0.9.x.

powerman avatar Mar 03 '23 06:03 powerman