creator2.2.0里的socket.io是哪个版本?用的可是Socket.IO C++ Client 这个库?

Simulator: JS: ClientNetUtil userNum=7084470
Simulator: JS: ClientNetUtil tokenSign=e23e781f41899a64f037c5c9106802db
Simulator: JS: ClientNetUtil connect url:http://192.168.0.202:9999?userNum=7084470&tokenSign=e23e781f41899a64f037c5c9106802db
Simulator: JSB SocketIO.connect method called
Simulator: Calling native SocketIO.connect method
Simulator: JSB SocketIO eventName to: ‘connect’
Simulator: JSB SocketIO eventName to: ‘connecting’
Simulator: JSB SocketIO eventName to: ‘disconnect’
Simulator: JSB SocketIO eventName to: ‘connect_failed’
Simulator: JSB SocketIO eventName to: ‘error’
Simulator: JSB SocketIO eventName to: ‘message’
Simulator: JSB SocketIO eventName to: ‘anything’
Simulator: JSB SocketIO eventName to: ‘reconnect_failed’
Simulator: JSB SocketIO eventName to: ‘reconnect’
Simulator: JSB SocketIO eventName to: ‘reconnecting’
Simulator: JSB SocketIO eventName to: ‘response’

Simulator: JSB SocketIO::SIODelegate->onError method called from native with data: 无法解析响应
Simulator: JSB SocketIO::SIODelegate->fireEventToScript method called from native with name ‘error’ data: 无法解析响应
Simulator: JS: ClientNetUtil socket.io event name: error
Simulator: JSB SocketIO::SIODelegate->onClose method called from native
Simulator: JSB SocketIO::SIODelegate->fireEventToScript method called from native with name ‘disconnect’ data:
Simulator: JS: ClientNetUtil socket.io event name: disconnect
Simulator: disconnect …

我是在mac电脑上,用模拟器运行时出现的这个问题。
度娘了下,有人和我的问题相似
http://www.51work6.com/forum.php?mod=viewthread&tid=1197
他最终的解决方案是,把服务器的socket.io降到0.9.16才可以。
我们的服务器不给降,说这个版本太老旧,问题多!

socket.io官网上有个c++的库:https://socket.io/blog/socket-io-cpp/
cocos真正的语言不是c++嘛,想到了一个方法,用这个c++的库,然后做jsb绑定。
不知道还要爬多少坑,这个jsb我不会啊。

失败了,https://socket.io/blog/socket-io-cpp/库不方便添加到cocos中。引用了boost库,太麻烦。而且不太支持android平台。
怎么办?

搞定了,应该还是版本不匹配的问题,参考了这个帖子
https://my.oschina.net/u/2400340/blog/536207

兄弟,你在2.2下最后用的socketio是哪个版本?麻烦告一下