The best way I have found to do this is to use bower.
bower install socket.io-client --save
and include the following in your app’s HTML:
<script src="https://stackoverflow.com/bower_components/socket.io-client/socket.io.js"></script>
That way you can treat the socket.io part of your client the same way you treat any other managed package.