Skip to content

Conversation

@mfbonfigli
Copy link

If requested method has not been bound to the channel the provided error function is not invoked, so the caller never gets to know what happened and why. There are instances (let's think about browser extensions and the separation between content_script and background script) in which it is not easy to understand if bind has already been executed in the other context, so having a way to reliably know that allows a proper management of these situations.
With this pull request the channel invokes the error function even when the caller requested a method that is not bound instead of simply ignoring the request.

Added call to error callback function in case requested method is not bound to the channel.
Added an example of error callback in case of method not bound to the channel
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