I’m working in Xcode and having issues with the integration to connect it. basically the logs look like these ones:
Trading WebSocket error: Error Domain=NSPOSIXErrorDomain Code=57 “Socket is not connected” UserInfo={NSErrorFailingURLStringKey=https://demo.tradovateapi.com/v1/websocket, NSErrorFailingURLKey=https://demo.tradovateapi.com/v1/websocket}
Market data WebSocket error: Error Domain=NSPOSIXErrorDomain Code=57 “Socket is not connected” UserInfo={NSErrorFailingURLStringKey=https://md-demo.tradovateapi.com/v1/websocket, NSErrorFailingURLKey=https://md-demo.tradovateapi.com/v1/websocket}
Basically URLSession is treating the WebSocket as HTTPS, not WSS.
idk why? Is it a MacOS issue? any help?