Skip to content

Commit e101e13

Browse files
committed
Update README.md
1 parent 918452a commit e101e13

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,10 @@ pubnub.publish({
4141
message : { "data" : "Hi." }
4242
})
4343

44-
// --
44+
// -- also
4545

46-
var a = [1,2,3];
47-
pubnub.publish({
48-
channel : "hello_world",
49-
message : a
50-
})
46+
var a = [ 1, 2, { b : 3} ];
47+
pubnub.publish({ channel : "hello_world", message : a })
5148
```
5249

5350
>**WARNING: Do not use** `JSON.stringify()`.

0 commit comments

Comments
 (0)