Instance Method

dispatchMessage

Sends messages securely between your Safari extension and the extension companion for your app.

Declaration

void dispatchMessage(in DOMString name, in any message);

Discussion

For more details on the structure of messages sent to the companion, see Message Structure in Safari Extensions Development Guide.