简体   繁体   English

不兼容的协议版本是否会产生任何影响?

[英]Does an incompatible protocol version have any impact?

I am using a 3rd party library for both my iOS and Android signalr clients. 我正在为iOS和Android信号器客户端使用第三方库。 Client has a alpha-2 version of SignalR and server is using the latest 1.0.0 version and hence am facing the error of Incompatible protocol version. 客户端有一个alpha-2版本的SignalR,服务器使用最新的1.0.0版本,因此面临着不兼容协议版本的错误。 If i bypass this protocol match check in my client code then am able to connect without any problem. 如果我绕过此协议匹配检查我的客户端代码然后能够连接没有任何问题。 But would this result in the failures of any features? 但这会导致任何功能的失败吗?

Client is not able to receive any data i send from SignalR server, could the incompatible protocol be the reason for it? 客户端无法接收我从SignalR服务器发送的任何数据,不兼容的协议可能是它的原因吗? If so then how can i resolve this Incompatible protocol version problem? 如果是,那么我该如何解决这个不兼容的协议版本问题呢?

It has a large impact yes!! 它有很大的影响! When the protocol changes that means that the server will be sending down data that only a client with the correct protocol version will be able to read. 当协议发生变化时,意味着服务器将发送只有具有正确协议版本的客户端才能读取的数据。

For instance when we started compressing message Id's (used to determine what messages a client has received) we updated the protocol version. 例如,当我们开始压缩消息Id(用于确定客户端收到了哪些消息)时,我们更新了协议版本。 An older client that does not recognize the updated message Id format will fail to communicate correctly with the server. 不识别更新的消息Id格式的旧客户端将无法与服务器正确通信。

I'd recommend downgrading your SignalR server to an alpha-2 build until the third party clients have been successfully updated to 1.0.0 versions. 我建议将SignalR服务器降级为alpha-2版本,直到第三方客户端成功更新到1.0.0版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM