Skip to content

Add an option to reject a message #3

Description

@michalstocki

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions