我使用的是UnitySocketIO https://github.com/NetEase/UnitySocketIO 连接到Sails.js上的服务器Socket.IO。 但是,它在与
握手期间出错socket Error: Error initializing handshake with http://192.168.0.104:1337/
服务器日志:
handshake error No cookie transmitted with socket.io connection. Are you trying to access
your Sails.js server via socket.io on a 3rd party domain? If you're ok with losing users'
session data, you can set `authorization: false` to disable cookie-checking.
Or you can send a JSONP request first from the client to the Sails.js server
to get the cookie (be sure it's the same domain!!)
帮助!
答案 0 :(得分:0)
On Sails是打开与socket io 0.9客户端
的兼容性所必需的