cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 489 forks source link

关于WebSocket包头错误问题 #1799

Open alpha1916 opened 9 years ago

alpha1916 commented 9 years ago

WebSocket在Cocos2d-JS使用过程中,Web版正常没有问题,可是在原生的Android版使用的时候,发送数据给服务端的时候不定时出现包不完整的情况,没有包头这样,比如在使用json协议传输数据时,会出现这种情况:服务端收到的数据只有json内容,而没有WebSocket协议头。

qinning commented 8 years ago

We have the similarity issues. In android platform, if we send too much protocol, then server will disconnect the client connection. we have checked this, and found websocket maybe have some mistakes. however, we didn't find this issues in other platform.