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
No description provided.
The text was updated successfully, but these errors were encountered:
就是放在 project.json 里面直接引用就行了
Sorry, something went wrong.
@fantasyni 那 socket.io 库 是用 socket.io 还是 socket.io-client 我这边没有弄成功。
是这样吗? https://github.com/NetEase/pomelo-cocos2d-js 这个包的index.js文件修改为下面的
var Util = require('util'); function checkCocos2dJsb() { if (typeof cc !== 'undefined' && cc && cc.sys && cc.sys.isNative) { return true; } return false; } var Root; (function() { Root = this; }()); if (checkCocos2dJsb()) { var console = cc; Root.console = console; cc.formatStr = Util.format; } var io = require('socket.io-client'); Root.io = io; var pomelo = require('pomelo-jsclient-socket.io'); Root.pomelo = pomelo;
然后在 cocos2d-js native里面用 require('./pomelo-cocos2d-js/index.js')
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: