I've set up a CoffeeScript with node.js application on a subdomain such as node.domain.com using a port 8901 ( http://node.domain.com ).
Within my coffeescript app, I'm using socket.io to communicate with the node server and client.
socket = io.connect('http://node.domain.com')
The problem is doing it that way, I've got an error :
GET http://node.domain.com/socket.io/1/?t=1437482662157 404 Not found
我会尝试在套接字io的初始化中包含端口号。
socket = io.connect('http://node.domain.com:8901)
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.