An abstraction for communications between JavaScript and host platforms.

  1. First you construct your platform-specific configuration (eg: WebkitMessagingConfig)
  2. Then use that to get an instance of the Messaging utility which allows you to send and receive data in a unified way
  3. Each platform implements MessagingTransport along with its own Configuration

Please see the following links for examples

Classes

AndroidMessagingConfig
AndroidMessagingTransport
Messaging
MessagingContext
MessagingTransport
MissingHandler
TestTransport
TestTransportConfig
WebkitMessagingConfig
WebkitMessagingTransport
WindowsInteropMethods
WindowsMessagingConfig
WindowsMessagingTransport
WindowsNotification
WindowsRequestMessage

Type Aliases

MessagingConfig

Functions

createTypedMessages

References

MessageError → MessageError
MessageResponse → MessageResponse
NotificationMessage → NotificationMessage
RequestMessage → RequestMessage
Subscription → Subscription
SubscriptionEvent → SubscriptionEvent