Lynx

sendMessage

Sends a debugging message of a specified type to the communication peer (e.g., the DevTool Desktop Application).

It works with the subscribeMessage method to enable two-way communication.

Syntax

iOS

LynxBaseInspectorOwnerNG.h
- (void)sendMessage:(nonnull CustomizedMessage *)message;

Parameters

Android

LynxBaseInspectorOwnerNG.java
void sendMessage(CustomizedMessage message);

Parameters

Harmony

LynxBaseInspectorOwner.ets
sendMessage(type: string, message: string): void;

Parameters

  • type: The type of message to send, such as CDP or other custom message types.
  • message: The message data to send.

Usage Example

Please refer to subscribeMessage.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.