Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Server side: OnDisconnectedAsync call occurs at different intervals when Wi-Fi is turned off. #87

Open
kapitaneo opened this issue Jun 30, 2019 · 5 comments

Comments

@kapitaneo
Copy link

Hello to all. Please help solve problem. I've issue with calling OnDisconnectedAsync method when IPad wi-fi turned off, calling may be happen fast but some times it takes a long time more 10 minutes, but some times never. I need a stable disconnect calling for example 30 seconds. I use signalR 1.1.0 with default KeepAliveInterval and ServerTimeout. How I can manage this?
I hope I don't have to do a manual check of the client to disconnect. It'll be terrible:(

Thx for help.

@BrennanConroy
Copy link
Member

Are you using SignalR 1.1.0 on both the client and server side?

@kapitaneo
Copy link
Author

Yes, you're right, but if I understand right problem in server side because when wi-fi off client doesn't have opportunity send response without internet connection. Or I've wrong thoughts about it?

@BrennanConroy
Copy link
Member

In 1.1.0 we added client-side pinging so that the server can call OnDisconnectedAsync within the configured timeout (30 seconds by default). That's why I was wondering about the version of the client, because if you're using 1.0.0 then the client wont initiate the pings and the server wont start the timer to timeout the connection.

@kapitaneo
Copy link
Author

kapitaneo commented Jul 4, 2019

In client use "@aspnet/signalr": "^1.1.4"
Are there may be differences?

@BrennanConroy
Copy link
Member

Could you gather server and client side logs as detailed here: https://docs.microsoft.com/en-us/aspnet/core/signalr/diagnostics?view=aspnetcore-2.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants