SignalR Java客户端仅支持1.3 [英] SignalR Java client only supports exactly 1.3

查看:132
本文介绍了SignalR Java客户端仅支持1.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么SignalR的Java客户端只支持1.3版本?

Is there a reason why the Java client for SignalR only supports exactly version 1.3?

https://github.com/SignalR/java-client/blob /f226631da562cfaacbe8b16d5a9ecbf8205e7c99/signalr-client-sdk/src/microsoft/aspnet/signalr/client/Connection.java#L597

不应该所有客户都倒退兼容?是否有任何损害并更改 verifyProtocolVersion 方法以验证协议是否小于或等于1.3?出于测试目的,我只是返回true,跳过整个方法体,看它是否适用于我的1.2.1服务器,它确实如此。

Shouldn't all clients be backwards compatible? Is there any harm done and changing the verifyProtocolVersion method to verify that the protocol is less than or equal to 1.3? For testing purposes, I simply returned true, skipping the entire method body, to see if it worked with my 1.2.1 server, and it did.

也许这应该被视为一个错误?

Maybe this should be considered a bug?

推荐答案

SignalR协议版本与SignalR软件包版本不一致。例如,SignalR 2.0。*服务器支持使用SignalR协议版本1.2或1.3与客户端通信:

SignalR protocol versions do not align with SignalR package versions. For example, the SignalR 2.0.* server supports communicating with clients using either version 1.2 or 1.3 of the SignalR protocol:

https://github.com/SignalR/SignalR/blob/2.0。 3 / src / Microsoft.AspNet.SignalR.Core / Infrastructure / ProtocolResolver.cs

看起来Java客户端支持最新的SignalR协议版本SignalR 2.0.3。

It looks like the Java client supports the latest SignalR protocol version as of SignalR 2.0.3.

这篇关于SignalR Java客户端仅支持1.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆