Skip to content

Commit

Permalink
Update README to reference the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
hph committed Nov 3, 2016
1 parent 8139b48 commit 3925da4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ If you're using PusherJS on a web page, you can install the library via:
#### CDN

```html
<script src="//js.pusher.com/3.1/pusher.min.js"></script>
<script src="//js.pusher.com/3.2/pusher.min.js"></script>
```

#### Bower
Expand Down Expand Up @@ -83,7 +83,7 @@ Notes:
You can import the worker script (`pusher.worker.js`, not `pusher.js`) from the CDN:

```javascript
importScripts("https://js.pusher.com/3.1/pusher.worker.min.js");
importScripts("https://js.pusher.com/3.2/pusher.worker.min.js");
```

### NodeJS
Expand Down Expand Up @@ -412,17 +412,17 @@ First, clone this repository and run `npm install && git submodule init && git s

In the `dist/web` folder, you should see the files you need: `pusher.js`, `pusher.min.js`, `json2.js`, `json.min.js`, `sockjs.js` and `sockjs.min.js`. `pusher.js` should be built referencing your URLs as the dependency hosts.

First, make sure you expose all files from the `dist` directory. They need to be in a directory with named after the version number. For example, if you're hosting version 3.1.0 under `http://example.com/pusher-js` (and https for SSL), files should be accessible under following URL's:
First, make sure you expose all files from the `dist` directory. They need to be in a directory with named after the version number. For example, if you're hosting version 3.2.0 under `http://example.com/pusher-js` (and https for SSL), files should be accessible under following URL's:

http://example.com/pusher-js/3.1.0/pusher.js
http://example.com/pusher-js/3.1.0/json2.js
http://example.com/pusher-js/3.1.0/sockjs.js
http://example.com/pusher-js/3.2.0/pusher.js
http://example.com/pusher-js/3.2.0/json2.js
http://example.com/pusher-js/3.2.0/sockjs.js

Minified files should have `.min` in their names, as in the `dist/web` directory:

http://example.com/pusher-js/2.1.3/pusher.min.js
http://example.com/pusher-js/2.1.3/json2.min.js
http://example.com/pusher-js/2.1.3/sockjs.min.js
http://example.com/pusher-js/3.2.0/pusher.min.js
http://example.com/pusher-js/3.2.0/json2.min.js
http://example.com/pusher-js/3.2.0/sockjs.min.js

## SockJS compatibility

Expand Down

0 comments on commit 3925da4

Please sign in to comment.