Check this out: http://socket.io/blog/introducing-socket-io-1-0/
CDN Delivery
One of the best decisions that we made at an early stage was that implementing the Socket.IO server would not only give you access to the real-time protocol, but Socket.IO itself would also serve the client.
Generally, all you have to do is include this snippet:
<script src="/socket.io/socket.io.js"></script>
If you want to optimize access to the client by serving it next to your users, ensure the maximum level of gzip compression (thanks to Googles zopfli and proper caching support, you can now use our CDN. Its free, forever and has built-in SSL support:
<script src="https://cdn.socket.io/socket.io-1.0.0.js"></script>
Also, if you go from 0.9: http://socket.io/docs/migrating-from-0-9/
source share