davidstump / SwiftPhoenixClient

Connect your Phoenix and iOS applications through WebSockets!
MIT License
511 stars 147 forks source link

Fix duplicate Channel Join and updated client to phoenix.js #177

Closed dsrees closed 3 years ago

dsrees commented 3 years ago
  1. Updated stateChangeCallbacks to include refs to match the behavior of the phoenix.js client.
  2. Added socket.off(ref:) function which allows the client to remove individual onMessage, onOpen, onError, and onClose hooks by a ref value.
  3. Removing a buffered join message from the sendBuffer to prevent duplicate phx_joins from being sent when the Socket is opened.