davidstump / SwiftPhoenixClient

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

Task/support request headers for socket connection #246

Closed msandel6 closed 11 months ago

msandel6 commented 1 year ago

The framework currently doesn't support using a URLRequest with custom headers for the socket connection request.

This PR adds the ability to open a socket via a URLRequest with custom headers by making use of URLSession's webSocketTask(with request: URLRequest) function.

dsrees commented 11 months ago

249