Skip to content

Commit 5eac510

Browse files
author
Wenjun Che
committed
ADAP-39: support for V44 of Runtime
1 parent 9b6ca61 commit 5eac510

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Source code for the example is located in /src/main/java/com/openfin/desktop/dem
2121

2222
1. Create connection object:
2323

24-
this.controller = new DesktopConnection("OpenFinDesktopDemo", "localhost", port);
24+
this.desktopConnection = new DesktopConnection("OpenFinDesktopDemo", "localhost", port);
2525

2626
This code just creates an instance and it does not try to connect to runtime.
2727

28-
2. Launch and connect to OpenFin runtime:
28+
2. Launch and connect to stable version of OpenFin runtime:
2929

30-
controller.launchAndConnect(this.desktopCommandLine, listener, 10000);
30+
desktopConnection.connectToVersion("stable", listener, 10000);
3131

3232
listener is an instance of DesktopStateListener which provides callback on status of connections to runtime. desktopCommandLine is a string of arguments passed to OpenFinRVM.
3333
This example by default passes remote config file for Hello OpenFin app, which will be started as the first app in OpenFin Runtime.
@@ -64,11 +64,11 @@ Source code for the example is located in /src/main/java/com/openfin/desktop/dem
6464
6. Publishes messages to a topic with InterApplicationBus
6565

6666
org.json.JSONObject message = createSomeJsonMessage();
67-
controller.getInterApplicationBus().publish("someTopic", message);
67+
desktopConnection.getInterApplicationBus().publish("someTopic", message);
6868

6969
7. Subscribes to a topic with InterApplicationBus
7070

71-
controller.getInterApplicationBus().subscribe("*", "someTopic", new BusListener() {
71+
desktopConnection.getInterApplicationBus().subscribe("*", "someTopic", new BusListener() {
7272
public void onMessageReceived(String sourceUuid, String topic, Object payload) {
7373
JSONObject message = (JSONObject) payload;
7474
}
@@ -92,13 +92,13 @@ Source code for the example is located in /src/main/java/com/openfin/desktop/dem
9292

9393
1. Create connection object:
9494

95-
this.controller = new DesktopConnection("OpenFinDockingDemo", "localhost", port);
95+
this.desktopConnection = new DesktopConnection("OpenFinDockingDemo", "localhost", port);
9696

9797
This code just creates an instance and it does not try to connect to runtime.
9898

99-
2. Launch and connect to OpenFin runtime:
99+
2. Launch and connect to stable version of OpenFin runtime:
100100

101-
controller.launchAndConnect(this.desktopCommandLine, listener, 10000);
101+
desktopConnection.connectToVersion("stable", listener, 10000);
102102

103103
listener is an instance of DesktopStateListener which provides callback on status of connections to runtime. desktopCommandLine is a string of arguments passed to OpenFinRVM.
104104
This example by default passes remote config file for Hello OpenFin app, which will be started as the first app in OpenFin Runtime.

0 commit comments

Comments
 (0)