SignalR Java客户端仅支持1.3 [英] SignalR Java client only supports exactly 1.3
问题描述
为什么SignalR的Java客户端只支持1.3版本?
Is there a reason why the Java client for SignalR only supports exactly version 1.3?
不应该所有客户都倒退兼容?是否有任何损害并更改 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:
看起来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屋!