Skip to content

Commit d97aabe

Browse files
committed
updated unit tests and cleaned up JS code.
1 parent 513945e commit d97aabe

File tree

26 files changed

+1488
-1250
lines changed

26 files changed

+1488
-1250
lines changed

CHANGELOG

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
10-11-13 * NEW VERSION 3.5.47 *
2+
. simplified and reduced code.
3+
. improved unit tests for more chars in channel/message.
4+
5+
10-10-13 * NEW VERSION 3.5.46 *
6+
. added async load special support.
7+
18
10-09-13 * NEW VERSION 3.5.45 *
29
. rebuilt with space char escaping %20 sort of thing.
310

README.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# YOU MUST HAVE A PUBNUB ACCOUNT TO USE THE API.
22
Create an account at http://www.pubnub.com/account
33

4-
## The PubNub Network JavaScript Real-time SDK v3.5.43
4+
## The PubNub Network JavaScript Real-time SDK v3.5.47
55
http://www.pubnub.com - PubNub Real-time Push Service in the Cloud.
66

77
The PubNub Network is a blazingly fast Global Messaging Service for building
@@ -16,7 +16,7 @@ business collaborative solutions, and more.
1616
You may access the latest PubNub JavaScript SDK on The PubNub Network CDN.
1717

1818
```html
19-
<script src=http://cdn.pubnub.com/pubnub-3.5.43.min.js ></script>
19+
<script src=http://cdn.pubnub.com/pubnub-3.5.47.min.js ></script>
2020
<script>(function(){
2121
var pubnub = PUBNUB.init({
2222
publish_key : 'demo',
@@ -34,7 +34,7 @@ and for security considerations,
3434
use this following method for initialization:
3535

3636
```html
37-
<script src=http://cdn.pubnub.com/pubnub-3.5.43.min.js ></script>
37+
<script src=http://cdn.pubnub.com/pubnub-3.5.47.min.js ></script>
3838
<script>(function(){
3939
4040
var pubnub = PUBNUB.init({ subscribe_key : 'demo' });
@@ -47,7 +47,7 @@ use this following method for initialization:
4747
>**NOTE:** Copy and paste this example into a *blank* HTML file or visit http://jsfiddle.net/geremy/SqamR/ to demo
4848
4949
```html
50-
<script src=http://cdn.pubnub.com/pubnub-3.5.43.min.js ></script>
50+
<script src=http://cdn.pubnub.com/pubnub-3.5.47.min.js ></script>
5151
<script>(function(){
5252
5353
// Init
@@ -177,7 +177,7 @@ JavaScript SDK using the **web** build. It's as easy as `copy/paste`.
177177
## ADVANCED SUBSCRIBE CONNECTIVITY OPTIONS/CALLBACKS
178178
```html
179179
<div id=pubnub pub-key=demo sub-key=demo></div>
180-
<script src=http://cdn.pubnub.com/pubnub-3.5.43.min.js ></script>
180+
<script src=http://cdn.pubnub.com/pubnub-3.5.47.min.js ></script>
181181
<script>(function(){
182182
PUBNUB.subscribe({
183183
channel : "hello_world", // CONNECT TO THIS CHANNEL.
@@ -225,7 +225,7 @@ when **receiving messages**.
225225

226226
```html
227227
<div id=pubnub pub-key=demo sub-key=demo></div>
228-
<script src=http://cdn.pubnub.com/pubnub-3.5.43.min.js ></script>
228+
<script src=http://cdn.pubnub.com/pubnub-3.5.47.min.js ></script>
229229
<script>(function(){
230230
PUBNUB.subscribe({
231231
channel : "hello_world", // CONNECT TO THIS CHANNEL.
@@ -339,8 +339,8 @@ are open source, you’re welcome to see how we did it).
339339
To use AES encryption in PubNub, simply do the following:
340340

341341
```html
342-
<script src=https://pubnub.a.ssl.fastly.net/pubnub-3.5.43.min.js></script>
343-
<script src=https://pubnub.a.ssl.fastly.net/pubnub-crypto-3.5.43.min.js></script>
342+
<script src=https://pubnub.a.ssl.fastly.net/pubnub-3.5.47.min.js></script>
343+
<script src=https://pubnub.a.ssl.fastly.net/pubnub-crypto-3.5.47.min.js></script>
344344
<script>(function(){
345345
var secure_pubnub = PUBNUB.secure({
346346
publish_key : 'demo',
@@ -407,7 +407,7 @@ http://jsfiddle.net/geremy/8e6Cr/
407407
## SSL MODE
408408
```html
409409
<div id=pubnub ssl=on></div>
410-
<script src=https://pubnub.a.ssl.fastly.net/pubnub-3.5.43.min.js></script>
410+
<script src=https://pubnub.a.ssl.fastly.net/pubnub-3.5.47.min.js></script>
411411
<script>(function(){
412412
413413
var pubnub = PUBNUB.init({
@@ -544,7 +544,7 @@ http://pubsub.pubnub.com/v2/history/sub-key/demo/channel/storage_test?start=1340
544544
## HISTORY
545545
```html
546546
<div id=pubnub></div>
547-
<script src=http://pubnub.a.ssl.fastly.net/pubnub-3.5.43.min.js></script>
547+
<script src=http://pubnub.a.ssl.fastly.net/pubnub-3.5.47.min.js></script>
548548
<script>(function(){
549549
550550
var pubnub = PUBNUB.init({
@@ -573,7 +573,7 @@ the timeline as they occured.
573573
574574
```html
575575
<div id=pubnub></div>
576-
<script src=http://pubnub.a.ssl.fastly.net/pubnub-3.5.43.min.js></script>
576+
<script src=http://pubnub.a.ssl.fastly.net/pubnub-3.5.47.min.js></script>
577577
<script>(function(){
578578
579579
/* GENERATE CHANNEL */
@@ -610,7 +610,7 @@ and get back an answer with list of users and the occupancy count.
610610

611611
```html
612612
<div id=pubnub pub-key=demo sub-key=demo></div>
613-
<script src=http://cdn.pubnub.com/pubnub-3.5.43.min.js ></script>
613+
<script src=http://cdn.pubnub.com/pubnub-3.5.47.min.js ></script>
614614
<script>(function(){
615615
PUBNUB.subscribe({
616616
channel : "hello_world", // CONNECT TO THIS CHANNEL.
@@ -652,7 +652,7 @@ the `pubnub.subscribe` call below.
652652

653653
```html
654654
<div id=pubnub></div>
655-
<script src=http://pubnub.a.ssl.fastly.net/pubnub-3.5.43.min.js></script>
655+
<script src=http://pubnub.a.ssl.fastly.net/pubnub-3.5.47.min.js></script>
656656
<script>(function(){
657657
658658
var pubnub = PUBNUB.init({
@@ -702,7 +702,7 @@ The following example opens a `new WebSocket` in
702702

703703
```html
704704
<!-- Import PubNub Core Lib -->
705-
<script src="https://pubnub.a.ssl.fastly.net/pubnub-3.5.43.min.js"></script>
705+
<script src="https://pubnub.a.ssl.fastly.net/pubnub-3.5.47.min.js"></script>
706706

707707
<!-- Use WebSocket Constructor for a New Socket Connection -->
708708
<script>(function() {
@@ -750,7 +750,7 @@ The following example opens a `new WebSocket` in
750750

751751
```html
752752
<!-- NON-SSL Import PubNub Core Lib -->
753-
<script src="http://pubnub.a.ssl.fastly.net/pubnub-3.5.43.min.js"></script>
753+
<script src="http://pubnub.a.ssl.fastly.net/pubnub-3.5.47.min.js"></script>
754754

755755
<!-- NON-SSL Use WebSocket Constructor for a New Socket Connection -->
756756
<script>(function() {
@@ -767,7 +767,7 @@ How to create a new instance of the PubNub Object directly in JavaScript.
767767
To do this, simply follow this `init` example:
768768

769769
```html
770-
<script src=http://cdn.pubnub.com/pubnub-3.5.43.min.js ></script>
770+
<script src=http://cdn.pubnub.com/pubnub-3.5.47.min.js ></script>
771771
<script>(function(){
772772
773773
// INIT PubNub
@@ -811,7 +811,7 @@ will want to use `noleave` option:
811811
Use the following setup commands to enable `noleave`.
812812

813813
```html
814-
<script src=http://cdn.pubnub.com/pubnub-3.5.43.min.js ></script>
814+
<script src=http://cdn.pubnub.com/pubnub-3.5.47.min.js ></script>
815815
<script>(function(){
816816
817817
// INIT PubNub

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.5.45
1+
3.5.47

0 commit comments

Comments
 (0)