Signalr client version 1.5, server version undefined

I have signalR v2 installed and the link on my page

<script src="~/Scripts/jquery-1.10.2.min.js"></script> <script src="~/Scripts/jquery.signalR-2.2.0.min.js"></script> <script src="~/signalr/hubs"></script> 

But sometimes I get an error in the browser debugger:

Error: You are using a client version that is incompatible with the server. Client version 1.5, server version undefined.

I think the problem is that the client looks like version 1.5. There are other packages in the project, such as Autofac SignalR 2 Integration, but I think they do not affect the client version.

+5
source share
1 answer

The problem arose because all the lines in the camel case were transmitted in the case of a snake by a component of another developer. The version of the R signal was stored in one of the variables with the changed flag, and the script could not find the version, since the variable with the version was undefined. Hope this helps someone.

+9
source

Source: https://habr.com/ru/post/1216071/


All Articles