Skip to content

@halone/sdk / ConnectMessage

Interface: ConnectMessage ​

Handshake, identical in the simulator and on Android: the host posts this to the app's window with the port transferred (WebView.postWebMessage on the device). The simulator posts it only in answer to HelloMessage, so a page never receives a second port it would ignore; on the device there is no parent to say hello to, and the native side posts once per page load.

Properties ​

halone ​

ts
halone: "connect";

protocolVersion ​

ts
protocolVersion: number;

windowId ​

ts
windowId: string;

Released under the MIT License.