Skip to content

Commit a4bfb3e

Browse files
authored
Updated channel example
1 parent 1cee654 commit a4bfb3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/openfin/desktop/demo/ChannelExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ public void onClientConnect(ChannelClientConnectEvent connectionEvent) throws Ex
5555
JSONObject payload = (JSONObject) connectionEvent.getPayload();
5656
if (payload != null) {
5757
String name = payload.optString("name");
58-
if ("badguy".equals(name)) {
58+
if ("Invalid Client".equals(name)) {
5959
// throw exception here to reject the connection
60-
throw new Exception("stay out");
60+
throw new Exception("request rejected");
6161
}
6262
}
6363
}
@@ -217,4 +217,4 @@ public static void main(String[] args) {
217217

218218
java.lang.System.exit(0);
219219
}
220-
}
220+
}

0 commit comments

Comments
 (0)