[Pkg-javascript-commits] [sockjs-client] 88/350: Update to jsDelivr CDN
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:03:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.
commit ff4809eeed6ef820ca599bb9ebc94f6d8716b378
Author: Bryce Kahle <bkahle at gmail.com>
Date: Thu Sep 25 16:43:56 2014 -0400
Update to jsDelivr CDN
---
README.md | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index 8101c2f..852115d 100644
--- a/README.md
+++ b/README.md
@@ -85,7 +85,7 @@ First, you need to load the SockJS JavaScript library. For example, you can
put that in your HTML head:
```html
-<script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script>
+<script src="//cdn.jsdelivr.net/sockjs/0.3.4/sockjs.min.js"></script>
```
After the script is loaded you can establish a connection with the
@@ -249,21 +249,13 @@ want to do so).
Deployment
----------
-In order to utilize best performance you should use the SockJS-client
-releases hosted on SockJS CDN. You should use a version of sockjs-client
+You should use a version of sockjs-client
that supports the protocol used by your server. For example:
```html
-<script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script>
+<script src="//cdn.jsdelivr.net/sockjs/0.3.4/sockjs.min.js"></script>
```
-A list of files hosted on a CDN is available here: http://sockjs.github.com/sockjs-client/ .
-
-You can also use our CDN via https (using Cloud Front domain name):
-
-```html
-<script src="https://d1fxtkz8shb9d2.cloudfront.net/sockjs-0.3.js"></script>
-```
For server-side deployment tricks, especially about load balancing and
session stickiness, take a look at the
@@ -334,7 +326,7 @@ server. Edit the [`config.js`](https://github.com/sockjs/sockjs-node/blob/master
And replace the `sockjs_url` setting, which by default points to a CDN:
- sockjs_url: 'http://cdn.sockjs.org/sockjs-0.3.min.js',
+ sockjs_url: 'http://cdn.jsdelivr.net/sockjs/0.3.4/sockjs.min.js',
to a freshly compiled SockJS, for example:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list