Open michalstocki opened 8 years ago
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.
reason
Sounds like a great feature! PRs accepted :)
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:
Then, the
reason
string will be send to a talker in other window and the awaiting promise will be rejected with thereason
.