socketio / socket.io-client-swift

Other
5.21k stars 841 forks source link

Add option to allow the use of URLSessionWebSocketTask in WebSocket client. #1420

Closed georgenavarro closed 2 years ago

georgenavarro commented 2 years ago

Added a useCustomEngine case to SocketIOClientOption. The associated bool will be passed to the WebSocket initializer. I needed this option so that I could control if the WebSocket client would use the native URLSessionWebSocketTask instead of the "custom engine."