We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/cocos-creator/cocos2d-x-lite/blob/develop/cocos/network/SocketIO.cpp#L944 https://github.com/cocos-creator/cocos2d-x-lite/blob/develop/cocos/network/SocketIO.cpp#L945 不确定为什么这里这么些,但是这两行最终都会触发jsb的fireEventToScript方法,导致js那边通过 socket.on('message', function () {})监听的话,会被调用两次.
The text was updated successfully, but these errors were encountered:
看了代码,的确啊。。。
Sorry, something went wrong.
fixed
No branches or pull requests
https://github.com/cocos-creator/cocos2d-x-lite/blob/develop/cocos/network/SocketIO.cpp#L944
https://github.com/cocos-creator/cocos2d-x-lite/blob/develop/cocos/network/SocketIO.cpp#L945
不确定为什么这里这么些,但是这两行最终都会触发jsb的fireEventToScript方法,导致js那边通过
socket.on('message', function () {})监听的话,会被调用两次.
The text was updated successfully, but these errors were encountered: