Skip to content

Commit

Permalink
Use sockjs from CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Oct 25, 2011
1 parent ef639c5 commit 6579d41
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Expand Up @@ -73,7 +73,7 @@ but instead of `WebSocket` there is a `SockJS` Javascript object.
First, you need to load SockJS JavaScript library, for example you can
put that in your http head:

<script src="http://sockjs.github.com/sockjs-client/sockjs-latest.min.js">
<script src="http://cdn.sockjs.org/sockjs-0.0.min.js">
</script>

After the script is loaded you can establish a connection with the
Expand Down Expand Up @@ -179,9 +179,14 @@ JsonP polling | any | no
Deployment
----------

There should be a proper CDN to host generated SockJS library, but
there isn't one yet. In the meantime you can use releases hosted on
Github: http://sockjs.github.com/sockjs-client/ .
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
that supports the protocol used by your server. For example:

<script src="http://cdn.sockjs.org/sockjs-0.0.min.js">
</script>

A list of files hosted on a CDN is available here: http://sockjs.github.com/sockjs-client/ .

For server-side deployment tricks, especially about load balancing and
session stickiness, take a look at the
Expand Down

0 comments on commit 6579d41

Please sign in to comment.