Type Alias HTMLPostMessageResponseOptions

HTMLPostMessageResponseOptions: {
    close?: boolean;
    closeDelay?: number;
    message: string;
    res: Response;
    status?: number | string;
    target?: string;
    title: string;
}

The options to build a response for a post message.

Type declaration

  • Optionalclose?: boolean

    Whether or not to call window.close after sending the message.

    true
    
  • OptionalcloseDelay?: number

    In case close is set to true, this option is to specify how many milliseconds should be waited before closing the window.

    700
    
  • message: string

    The contents of the post message.

  • res: Response

    The response object generated by the application.

  • Optionalstatus?: number | string

    The status code for the response.

    200
    
  • Optionaltarget?: string

    From which object will the postMessage method called from.

    'window.opener'
    
  • title: string

    The title for the HTML.