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

Add subscription error codes to mid groups (RV develop) #6

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

ferm10n
Copy link
Collaborator

@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.

@ferm10n ferm10n changed the title Add subscription error codes to mid groups Add subscription error codes to mid groups (RV develop) Mar 28, 2023
@ferm10n
Copy link
Collaborator Author

ferm10n commented Mar 28, 2023

upstream st-one-io#42

@ferm10n ferm10n mentioned this pull request Mar 28, 2023
9 tasks
@ferm10n
Copy link
Collaborator Author

ferm10n commented Mar 28, 2023

same 3 failing tests as on develop

@ferm10n ferm10n merged commit 4433476 into develop Mar 29, 2023
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.

2 participants