davidstump / SwiftPhoenixClient

Connect your Phoenix and iOS applications through WebSockets!
MIT License
506 stars 146 forks source link

Added URLResponse to socket.onError to check for status codes #226

Closed dsrees closed 1 year ago

dsrees commented 1 year ago

Closes #225

The current onError handler only returns information regarding client-side errors when connecting a socket. In order to get an indepth look as to why a Server might have declined the connection, the task.response needed to also be returned to socket.onError

Examples have been updated to account for this case