davidstump / SwiftPhoenixClient

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

Manually upgrading to wss for URLSessionTransport #180

Closed dsrees closed 3 years ago

dsrees commented 3 years ago

Starscream automatically handles upgrading an https url to a wss scheme but does not accept when the url has already been set to use wss. However URLSession does not do this so it is expecting the url to already use wss

Fixed by removing the manual upgrade from the URL builder and only upgrading inside of the URLSessionTransport init