ReadonlyidUnique identifier for this adapter type.
ReadonlynameHuman-readable name for logging.
ReadonlystateCurrent connection state.
Initialize the adapter and establish connection.
Promise that resolves when connected or rejects on failure.
Disconnect and clean up resources.
Check if the adapter is available in the current environment.
True if the adapter can be used.
Register event listeners.
Event handlers to register.
Register a callback for incoming messages.
Function to call when message is received.
Unsubscribe function.
Send a message to the native layer.
The message to send.
True if message was sent successfully.
Abstract messaging adapter interface.
Implementations handle the platform-specific details of communicating between the web content and the native host.