Use this configuration to create an instance of Messaging for WebKit platforms

We support modern WebKit environments and macOS Catalina.

Please see WebkitMessagingTransport for details on how messages are sent/received

Example

Properties

hasModernWebkitAPI: boolean

Whether or not the current WebKit Platform supports secure messaging by default (eg: macOS 11+)

secret: string

A string provided by native platforms to be sent with future outgoing messages.

webkitMessageHandlerNames: string[]

A list of WebKit message handler names that a user script can send.

For example, if the native platform can receive messages through this:

window.webkit.messageHandlers.foo.postMessage('...')

then, this property would be:

webkitMessageHandlerNames: ['foo']