Skip to content

Commit c3dae56

Browse files
committed
RUN-63: updated README
1 parent 9c9c31b commit c3dae56

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@ Source code for the example is located in /src/main/java/com/openfin/desktop/dem
2525

2626
this.desktopConnection = new DesktopConnection("OpenFinDesktopDemo");
2727

28-
This code just creates an instance and it does not try to connect to runtime.
28+
This code just creates an instance of DesktopConnection and it does not try to connect to runtime.
2929

3030
2. Launch and connect to stable version of OpenFin runtime:
3131

32-
desktopConnection.connectToVersion("stable", listener, 60);
32+
// create an instance of RuntimeConfiguration and configure Runtime by setting properties in RuntimeConfiguration
33+
this.runtimeConfiguration = new RuntimeConfiguration();
34+
// launch and connect to OpenFin Runtime
35+
desktopConnection.connect(this.runtimeConfiguration, listener, 10000);
3336

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

3739
3. Create new application when clicking on Create App:
3840

0 commit comments

Comments
 (0)