Skip to content

Commit 66b0755

Browse files
author
Devendra
committed
channel input not required for random option in token requester
1 parent 3b6ea3e commit 66b0755

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎java/examples/src/com/pubnub/examples/PubnubTokenRequest.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ public void start() {
181181
pubnub.publish(channel, message, new PrintCallback());
182182
}
183183
if (command.equalsIgnoreCase("r")) {
184-
String channel = getStringFromConsole("Channel Name",
185-
false);
186184
JSONObject message = new JSONObject();
187185
try {
188186
message.put("message", "New Message Available");
@@ -194,7 +192,7 @@ public void start() {
194192
} catch (JSONException e) {
195193
e.printStackTrace();
196194
}
197-
pubnub.publish(channel, message, new PrintCallback());
195+
pubnub.publish(publicChannel, message, new PrintCallback());
198196
}
199197
try {
200198
Thread.sleep(3000);

‎java/jars/PubnubTokenRequest.jar‎

-2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)