Skip to content

How to detect when hub disconnect? #117

@bahman2000

Description

@bahman2000

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"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions