pomelo-jsclient-socket.io's People
Forkers
huangciyin guolianghu maxyi coolsee shuhuiguo neimd sipims jiaoming alfhub wr272881899 liosimple wanls4583 yesoce leilei01 stubbornslug codezjg tianlang1997 anguer a904616537 zzdr1985 chenyeguxing peter-1991 lmj888cool berwingithub liangxudongsun xiaoyuhuazelei zaplmm solinma fanleesongpomelo-jsclient-socket.io's Issues
报找不到EventEmitter
仅仅引用这个js的话会报找不到EventEmitter
pomelo.request 的参数有问题
pomelo.request = function(route) {
console.log('i am in request');
if(!route) {
return;
}
var msg = {};
var cb;
arguments = Array.prototype.slice.apply(arguments);
if(arguments.length === 2){
console.log('i am in request arg = 2');
if(typeof arguments[1] === 'function'){
cb = arguments[1];
} else if(typeof arguments[1] === 'object'){
msg = arguments[1];
}
} else if(arguments.length === 3){
msg = arguments[1];
cb = arguments[2];
}
id++;
callbacks[id] = cb;
sendMessage(id, route, msg);
};
为何这里只有一个参数,搞不懂什么情况,而且websocket中此处也是3个参数,难道有什么他俩又什么不同吗
有和cocos2d-js native模式下 整合的事例吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.