We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cee654 commit a4bfb3eCopy full SHA for a4bfb3e
src/main/java/com/openfin/desktop/demo/ChannelExample.java
@@ -55,9 +55,9 @@ public void onClientConnect(ChannelClientConnectEvent connectionEvent) throws Ex
55
JSONObject payload = (JSONObject) connectionEvent.getPayload();
56
if (payload != null) {
57
String name = payload.optString("name");
58
- if ("badguy".equals(name)) {
+ if ("Invalid Client".equals(name)) {
59
// throw exception here to reject the connection
60
- throw new Exception("stay out");
+ throw new Exception("request rejected");
61
}
62
63
@@ -217,4 +217,4 @@ public static void main(String[] args) {
217
218
java.lang.System.exit(0);
219
220
-}
+}
0 commit comments