Skip to content

Commit be17fbf

Browse files
author
Geremy Cohen
committed
Update README.md
1 parent 5cd1855 commit be17fbf

File tree

1 file changed

+1
-48
lines changed

1 file changed

+1
-48
lines changed

modern/README.md

+1-48
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# PubNub HTML5 Modern JavaScript Library
2-
### v3.4.4
32

4-
For a faster PubNub load, use the PubNub HTML5 Modern JavaScript
5-
Library which is `CommonJS` and HTML5 `WebWorker` Ready.
3+
PubNub for JS Docs have been moved to: http://www.pubnub.com/docs/javascript/javascript-sdk.html
64

75
#### Supported Browsers:
86

@@ -13,48 +11,3 @@ Library which is `CommonJS` and HTML5 `WebWorker` Ready.
1311
- chrome/17.0'
1412
- iexplore/9.0'
1513
- safari/5.1'
16-
17-
```html
18-
<script src=pubnub.min.js></script>
19-
<script>(function(){
20-
// ----------------------------------
21-
// INIT PUBNUB
22-
// ----------------------------------
23-
var pubnub = PUBNUB({
24-
publish_key : 'PUBLISH_KEY_HERE',
25-
subscribe_key : 'SUBSCRIBE_KEY_HERE',
26-
ssl : false,
27-
origin : 'pubsub.pubnub.com'
28-
});
29-
30-
// ----------------------------------
31-
// LISTEN FOR MESSAGES
32-
// ----------------------------------
33-
pubnub.subscribe({
34-
restore : true,
35-
connect : send_hello,
36-
channel : 'my_channel',
37-
callback : function(message) {
38-
console.log(JSON.stringify(message));
39-
},
40-
disconnect : function() {
41-
console.log("Connection Lost");
42-
}
43-
});
44-
45-
// ----------------------------------
46-
// SEND MESSAGE
47-
// ----------------------------------
48-
function send_hello() {
49-
pubnub.publish({
50-
channel : 'my_channel',
51-
message : { example : "Hello World!" },
52-
callback : function(info) {
53-
console.log(JSON.stringify(info));
54-
}
55-
});
56-
}
57-
})();</script>
58-
59-
```
60-

0 commit comments

Comments
 (0)