Skip to content

Commit ff963e4

Browse files
author
Devendra
committed
added returning channels, and parameters in error callback
1 parent 08dcc94 commit ff963e4

8 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎android/3.4/Pubnub-Android-3.4.jar‎

54 Bytes
Binary file not shown.
54 Bytes
Binary file not shown.

‎java/3.3/test/PubnubExample.jar‎

0 Bytes
Binary file not shown.

‎java/3.3/test/PubnubUnitTest.jar‎

0 Bytes
Binary file not shown.
54 Bytes
Binary file not shown.
54 Bytes
Binary file not shown.

‎java/3.4/jars/PubnubExample.jar‎

54 Bytes
Binary file not shown.

‎java/3.4/srcPubnubApi/com/pubnub/api/PubnubCore.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public void publish(Hashtable args, Callback callback) {
354354
public void publish(Hashtable args) {
355355

356356
final String channel = (String) args.get("channel");
357-
Object message = args.get("message");
357+
final Object message = args.get("message");
358358
final Callback callback = (Callback) args.get("callback");
359359
String msgStr = message.toString();
360360

@@ -416,6 +416,7 @@ public void handleError(String response) {
416416
JSONArray jsarr;
417417
jsarr = new JSONArray();
418418
jsarr.put("0").put("publish " + response);
419+
jsarr.put(channel).put(message);
419420
callback.errorCallback(channel, jsarr);
420421
return;
421422
}

0 commit comments

Comments
 (0)