This repository was archived by the owner on May 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Port Discovery Protocol
Ricardo De Peña edited this page Sep 29, 2017
·
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:
If a window with a class name OPENFIN_ADAPTER_WINDOW is found it will receive a WMCopyData message with the following payload:
{
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 })
}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:
{
action: "runtime-information";
payload: {
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 })
}
}