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 an option to reject a message #3

Open
michalstocki opened this issue Jul 5, 2016 · 1 comment
Open

Add an option to reject a message #3

michalstocki opened this issue Jul 5, 2016 · 1 comment

Comments

@michalstocki
Copy link

Currently we can only respond to a message, remotely resolving a promise awaiting in the other frame. We'll find it useful if we could also reject a message like this:

talker.onMessage = function(message) {
  message.reject(reason);
};

Then, the reason string will be send to a talker in other window and the awaiting promise will be rejected with the reason.

@Kerrick
Copy link
Contributor

Kerrick commented Jul 5, 2016

Sounds like a great feature! PRs accepted :)

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

2 participants