pusher / pusher-websocket-swift

Pusher Channels websocket library for Swift
https://pusher.com/channels
MIT License
273 stars 166 forks source link

Getting Existing subscription to channel error #432

Open parvez-keeptruckin opened 3 months ago

parvez-keeptruckin commented 3 months ago

Steps to reproduce

When doing channel subscription on receiving connection state as connected, the pusher SDK is giving error Existing subscription to channel <channel name>

What must I do to reproduce the bug?

Steps:

Note: When I apply a delay of about 0.1 seconds for the code that subscribes to channel and event then above error does not happen

Expected behavior

The error should not happen as I made sure that channel subscription happened after successful pusher connection. What did you expect to happen?

Actual behavior

Error occurring. What actually happened? Submit stack traces or anything that you think would help.

Any improvements you suggest

The Pusher iOS SDK used v10.1.5 on minimum iOS deployment target iOS 14.0 ...