SwiftR icon indicating copy to clipboard operation
SwiftR copied to clipboard

Use SignalR -pre Versions

Open fhaussener opened this issue 8 years ago • 5 comments

I have SignalR running on a .Net Core Server, which does only support the v2.2.0-pre version. Is there some way to get SwiftR working with -pre versions?

fhaussener avatar May 19 '17 12:05 fhaussener

I haven't checked in a little while, but all the times I have tried to use .NET Core SignalR with SwiftR, using v2.2.0 in SwiftR still worked. Have you tried this?

adamhartford avatar May 19 '17 13:05 adamhartford

As much as I know there is no 2.2.0 version for .NET Core but theres a 2.2.0-pre. Do you have any Reference on this? Or do you mean to use SwiftR with 2.2.0-pre?

fhaussener avatar May 26 '17 10:05 fhaussener

I mean use v2.2.0 everywhere in SwiftR and just connect to the .NET Core SignalR server. That has worked for me in the past.

adamhartford avatar May 26 '17 13:05 adamhartford

I already tried it like this, but I assumed that I had the error because of the version. So know I get a well known error: Error during negotiation request. I already set the connection.useWKWebView = false. Do you know any other possible mistakes?

fhaussener avatar May 26 '17 14:05 fhaussener

I think @fhaussener refers to the new SignalR 1.0.0-alpha (https://dotnet.myget.org/feed/aspnetcore-ci-dev/package/nuget/Microsoft.AspNetCore.SignalR). As far as I can see by analyzing the server communication, the handshake changed and e.g. a Websocket is established directly by a 101 Switching Protocol. (See https://github.com/aspnet/SignalR/blob/dev/specs/TransportProtocols.md) There is no negotiation phase anymore, therefore this client won't be compatible with the new SignalR without some additional work.

Are there any plans to do this? The new JS client is out and could be integrated in this client as well. I would like to begin the work if someone could provide information where to start.

jsembdner avatar Oct 23 '17 09:10 jsembdner