Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Port Discovery Protocol

Harsimran Singh edited this page Sep 14, 2018 · 7 revisions

Port discovery is the mechanism where the Runtime transmits its WS Port information to interested parties. On each successful launch, once the socket server has obtained a port the Runtime will publish port Information via two mechanisms:

WMCopyData:

If a window with a class name OPENFIN_ADAPTER_WINDOW is found it will receive a WMCopyData message with the following payload:

interface PortDiscovery {
    version: string;
    sslPort: number; //defaults to -1
    port: number;
    requestedVersion: string; //e.g, "stable", "beta", "alpha"
    securityRealm: string;
    runtimeInformationChannel: string;
    options: any; //e.g., { "enable-multi-runtime": true, "v":1 }
}

Named Pipes

If the runtime-information-channel-v6 argument was passed during launch then its value will be used as the pipe name for a chromeIpc send message containing the following payload:

interface NamedPipesPortDiscovery {
    action: "runtime-information";
    payload: PortDiscovery
}
Clone this wiki locally