简体   繁体   中英

Host Socket.IO Offline

Im making a private network Chat.

I need to have my server and clients not connected to the internet. but the socket io grabs the javascript from the internet when it loads the page client side.

Whats the best way to fix this? can i push the socket io javascript to the client from the server?

AKA go: http://SERVER/socket.io-1.2.0.js

instead of: https://cdn.socket.io/socket.io-1.2.0.js

socket.io会通过/socket.io/socket.io.js自动通过连接的HTTP / Express服务器公开客户端库(因此,您的完整URL为http://SERVER/socket.io/socket.io.js

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM