angularjs - How to get socket.io.js file from server using sails.js -


i trying make angularjs application, independent node.js server running sailsjs.

i use socket.io application , apparently need socket.io.js file server.

in client load js file in index.html file using:

<script src="http://localhost:1337/socket.io/socket.io.js"></script> 

however sails not deliver file because of handshake error.

is there anyway file server?

thanks

if don't need node.js server, why don't copy socket.io.js file web server, , fetch there?


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -