JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host

Class MessagePort

    • Constructor Detail

      • MessagePort

        public MessagePort()
        Default constructor.
      • MessagePort

        public MessagePort(MessagePort port)
        Ctor with the specified port.
        Parameters:
        port - the port
    • Method Detail

      • setOnmessage

        public void setOnmessage(Object onmessage)
        Sets the value of the window's onmessage property.
        Parameters:
        onmessage - the value of the window's onmessage property
      • postMessage

        public void postMessage(String message,
         Object transfer)
        Posts a message.
        Parameters:
        message - the object passed to the window
        transfer - an optional sequence of Transferable objects
        See Also:
        MDN documentation
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /