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

feat: 'disconnect' event #175

Merged
merged 1 commit into from
Nov 8, 2019
Merged

Conversation

leolabs
Copy link
Contributor

@leolabs leolabs commented Nov 4, 2019

This PR adds a disconnect event that fires whenever a client is removed from the list of active connections.

Types and tests for this PR are already implemented.

This fixes #174

@trs trs added the feature label Nov 8, 2019
@trs
Copy link
Contributor

trs commented Nov 8, 2019

Great work! Thanks for this!

@trs trs merged commit a18841d into QuorumDMS:master Nov 8, 2019
@NeoLegends
Copy link

How does this library handle errors in the connection? Does the disconnect fire for a connection that closes due to an error? Or do I need to use client-error for that?

@NeoLegends
Copy link

It's now clear to me. In case of an error the disconnect event will also fire.

@trs Do you plan on releasing this soon? :)

@trs
Copy link
Contributor

trs commented Nov 12, 2019

🎉 This PR is included in version 4.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Event for when client disconnects
3 participants