unity3d + UnitySocketIO + sails.js初始化握手错误
问题描述:
我正在使用UnitySocketIO https://github.com/NetEase/UnitySocketIO 在Sails.js Socket.IO上连接到服务器。在握手期间 然而,错误出与unity3d + UnitySocketIO + sails.js初始化握手错误
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!!)
帮助!
答
On Sails是打开与套接字io 0.9客户端的兼容性所必需的
YEAAAH !!! On Sails对于打开与套接字io 0.9客户端的兼容性是必要的 – user3318056 2014-09-11 09:44:01