Skip to content

How to detect when hub disconnect? #117

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

Open
bahman2000 opened this issue Nov 11, 2024 · 1 comment
Open

How to detect when hub disconnect? #117

bahman2000 opened this issue Nov 11, 2024 · 1 comment

Comments

@bahman2000
Copy link

bahman2000 commented Nov 11, 2024

I need to detect when user disconnect. How can I implemet that like below code:

hubConnection.on('disconnect', (arguments) async { print("Connection Closed") });

or

hubConnection.onclose( (error) => print("Connection Closed"));

@MuhammedShadi
Copy link

@bahman2000 I think that signalr_netcore: ^1.4.1 will be a good alternative to solve this issue

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

2 participants