mirror of
https://github.com/Leo501/CocosCreatorTutorial.git
synced 2026-06-08 07:42:18 +08:00
完善pomelo客户端
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user