完善pomelo客户端

This commit is contained in:
leo
2018-08-22 10:57:12 +08:00
parent cd8aa7d6c5
commit 821a8f550d
47 changed files with 4468 additions and 322 deletions

View File

@@ -1344,6 +1344,7 @@ cc.Pomelo = function () {
pomelo.emit('close', event);
pomelo.emit('disconnect', event);
console.log('socket close: ', event);
// params.onclose && params.onclose();
if (!!params.reconnect && reconnectAttempts < maxReconnectAttempts) {
reconnect = true;
reconnectAttempts++;