Skip to content

Commit 96182eb

Browse files
author
Devendra
committed
history token example
1 parent 4fcc13d commit 96182eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

node.js/examples/history_token.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
--------------------------------------------------------------------------- */
77
var PUBNUB = require("./../pubnub.js");
8-
var channel = 'my_channel1';
8+
var channel = 'demo';
99
var pubnub = PUBNUB.init({
1010
publish_key : "demo",
1111
subscribe_key : "demo"
@@ -15,6 +15,7 @@ var pubnub = PUBNUB.init({
1515

1616
pubnub.history({
1717
channel : channel,
18+
count : 5,
1819
include_token : true,
1920
string_message_token : true,
2021
callback : function(messages) {

0 commit comments

Comments
 (0)