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

Define a way how a CMP should handle unknown/unsupported commands #100

Open
janwinkler opened this issue Nov 30, 2023 · 0 comments
Open

Comments

@janwinkler
Copy link

If a section introduces new commands but a CMP does not support them, how should the CMP react when the command is called?

Todo:
We should add wording/clarification on how CMPs should react in this case.

Suggestion:
Every command that is introduced in the future, MUST always have a "success: boolean" parameter as SECOND paramater of the callback function. If the CMP processes the command and finds that it does not understand it, it shall then call the callback with second parameter set to false in order to indicate an error.

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

No branches or pull requests

1 participant