SignalR initial connection takes way too long (logs included in comments)
Hey there.
So I have two versions of the same application, using essentially the same code. One of them, however, has SignalR take around 10 seconds to make a connection to the hub, meanwhile the other ones takes like 2 seconds tops. Why could that be?
Providing the code for connecting below:
6 Replies
Uploading logs here
Compare them. Success
it's the same code for the signalr connection 😄
so I was just thinking it may be to do with the server setup or something?
so any other ideas? 😄
Are the services deployed on different servers?
Did you try it locally?
results are both running locally
and there are really not many differences between the two codes, one is intended for use on localhost and the other one runs publicly, so those are really the only differences - the setup for the server
so thus my confusion
SignalR is set up in the same way
so why would it only fuck with its performance
So the issue does only occur when being deployed?