pusher / pusher-websocket-swift

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

Deduplicate resetConnection code to ensure consistency in both paths #399

Closed sonologico closed 1 year ago

sonologico commented 2 years ago

Description of the pull request

This PR does a small refactor and fixes an issue where socket id isn't cleared on disconnection.

Why is the change necessary?

This causes a bug where, when connection is flapping as in #364, reconnecting causes the wrong socket id to be used.

CHANGELOG