Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrarily disable a specific client or all #4699

Open
magals opened this issue Mar 5, 2024 · 0 comments
Open

Arbitrarily disable a specific client or all #4699

magals opened this issue Mar 5, 2024 · 0 comments

Comments

@magals
Copy link

magals commented Mar 5, 2024

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

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

No branches or pull requests

1 participant