Skip to content

Conversation

@ferm10n
Copy link
Contributor

@ferm10n ferm10n commented Mar 28, 2023

src/constants.js defines a mapping between error codes and a text message for what they represent.

Almost every subscription has at least two error codes, one for when the subscription already exists, and the other for when attempting to unsubscribe from a non-existent subscription.

This PR adds these error codes in the midGroups list, so it's possible for other libraries to know which mid group an error code corresponds to.

Additionally, error handling is added to prevent un/subscribing to mids that do not support that.

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.

1 participant