Skip to content

Commit 68ab8e6

Browse files
committed
updated README.md for SmartTV platform.
1 parent 68b040b commit 68ab8e6

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

smart-tv/README.md

+5-17
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# SmartTV JavaScript SDK for Sony, Philips, LG, Samsung and more!
22

3-
## PubNub JavaScript SDK Usage
3+
## SIMPLE EXAMPLE
44

5-
You may access the latest PubNub JavaScript SDK on The PubNub Network CDN.
5+
>**NOTE:** Copy and paste this example into a *blank* HTML file.
66
77
```html
88
<script src=pubnub.min.js ></script>
@@ -13,33 +13,21 @@ You may access the latest PubNub JavaScript SDK on The PubNub Network CDN.
1313
subscribe_key : 'demo'
1414
});
1515
16-
})();</script>
17-
```
18-
19-
## SIMPLE EXAMPLE
20-
21-
>**NOTE:** Copy and paste this example into a *blank* HTML file.
22-
23-
```html
24-
<div id=pubnub pub-key=demo sub-key=demo></div>
25-
<script src=http://cdn.pubnub.com/pubnub-3.4.8.min.js ></script>
26-
<script>
27-
2816
// LISTEN
29-
PUBNUB.subscribe({
17+
pubnub.subscribe({
3018
channel : "hello_world",
3119
message : function(m){ alert(m) },
3220
connect : publish
3321
})
3422
3523
// SEND
3624
function publish() {
37-
PUBNUB.publish({
25+
pubnub.publish({
3826
channel : "hello_world",
3927
message : "Hi."
4028
})
4129
}
4230
43-
</script>
31+
})();</script>
4432
```
4533

0 commit comments

Comments
 (0)