Skip to content

Conversation

aharvey101
Copy link
Contributor

This adds the ability to unsubscribe from a channel, it works but it's not very good, I welcome feedback. Ideally It only tries to unsubscribe once which right now it tries over and over. I have copied your pattern, but its not very dry now.

doneHook: false,
done: false,
}
this.subscriptions = this.subscriptions.map((s) => s.id !== sub.id)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean filter? this will return an array of bools

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes I did mean filter. will update

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

Successfully merging this pull request may close these issues.

3 participants