File tree Expand file tree Collapse file tree
src/main/java/com/openfin/desktop/demo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,16 +38,17 @@ public void onClose(String reason) {
3838 }
3939 }).build ().launch ().thenAccept (fin ->{
4040 this .fin = fin ;
41- if ("client" .equals (type )) {
41+ if ("client" .equals (type ) || type == null ) {
4242 this .createChannelClient ();
4343 }
44- else {
44+ if ( "provider" . equals ( type ) || type == null ) {
4545 this .createChannelProvider ();
4646 }
4747 });
4848 }
4949
5050 private void createChannelClient ( ) {
51+ logger .info ("creating channel client" );
5152 fin .Channel .connect (CHANNEL_NAME ).thenAccept (client ->{
5253 logger .info ("channel client connected" );
5354 client .dispatch ("getValue" ).thenAccept (v ->{
@@ -73,6 +74,7 @@ private void createChannelClient( ) {
7374 }
7475
7576 private void createChannelProvider () {
77+ logger .info ("creating channel provider" );
7678 fin .Channel .addChannelDisconnectListener (e ->{
7779 if (Objects .equals (CHANNEL_NAME , e .getString ("channelName" ))) {
7880 logger .info ("provider disconnected" );
You can’t perform that action at this time.
0 commit comments