Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] pubnub: PUBNUB.history takes a callback that takes a javascript…

… array in parameters
  • Loading branch information...
commit 2426482e5aefd28919c9b7d729f711adeb5083c8 1 parent 9157df8
@BourgerieQuentin authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/plugin/pubnub.js
5 src/plugin/pubnub.js
@@ -1,4 +1,6 @@
// This is an Javascript file, containing opa preprocessing directives
+##extern-type llarray('a)
+//' Declare llarray as an external type
##register publish : string, string -> void
##args(c, m)
@@ -29,7 +31,8 @@
return js_void;
-##register history : string, int, (string -> void) -> void
+// Callback history doesn't take a string as argument but a low level javascript array
+##register history : string, int, (llarray(string) -> void) -> void
##args(channel, limit, callback)
Please sign in to comment.
Something went wrong with that request. Please try again.