You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a lot of documentation on how to connect clients, how to create chats, but I did not find how to disconnect the connection of the current client? Let’s say I have a client connectionID and I want to write a service/IHostedService on the server that will check how long the client has been connected to the hub; if it’s more than 30 minutes, then it needs to be disabled.
I can write a method that sends a request to the client: “dude, the connection is closed” - and the client code that will catch this message and immediately close the session, but it’s wrong to do this when everything you need is on the server
The text was updated successfully, but these errors were encountered:
Arbitrarily disable a specific client or all.
There is a lot of documentation on how to connect clients, how to create chats, but I did not find how to disconnect the connection of the current client? Let’s say I have a client connectionID and I want to write a service/IHostedService on the server that will check how long the client has been connected to the hub; if it’s more than 30 minutes, then it needs to be disabled.
I can write a method that sends a request to the client: “dude, the connection is closed” - and the client code that will catch this message and immediately close the session, but it’s wrong to do this when everything you need is on the server
The text was updated successfully, but these errors were encountered: