moozzyk / SignalR-Client-Swift

Swift SignalR Client for Asp.Net Core SignalR server
MIT License
351 stars 132 forks source link

How to add "skipNegotiation , transport" to hubConnection ? #48

Closed Ali-jneidi closed 5 years ago

Ali-jneidi commented 5 years ago
let connection = HubConnectionBuilder(url: URL(string:"http://xxxxxx.com/signalHub")!)
            .withLogging(minLogLevel: .debug).withHttpConnectionOptions() { httpConnectionOptions in
                httpConnectionOptions.accessTokenProvider = { return "xxxxxxxxxx" }

            }
            .build()
moozzyk commented 5 years ago

Currently this is not supported (#12). Why do you need it? If you connect to the server then it will handle negotiate just fine.

moozzyk commented 5 years ago

You can now set skipNegotiation = True in the HttpConnectionOptions like this