@colyseus/core
Advanced tools
Comparing version 0.15.45 to 0.15.46
@@ -593,3 +593,10 @@ var __create = Object.create; | ||
} | ||
if (client.state !== import_Transport.ClientState.RECONNECTED) { | ||
if (this._reconnections[client._reconnectionToken]) { | ||
this._reconnections[client._reconnectionToken][1].catch(async () => { | ||
const willDispose = await this._decrementClientCount(); | ||
if (this.reservedSeats[client.sessionId] === void 0) { | ||
this._events.emit("leave", client, willDispose); | ||
} | ||
}); | ||
} else if (client.state !== import_Transport.ClientState.RECONNECTED) { | ||
const willDispose = await this._decrementClientCount(); | ||
@@ -596,0 +603,0 @@ if (this.reservedSeats[client.sessionId] === void 0) { |
@@ -13,7 +13,8 @@ /// <reference types="node" /> | ||
promise: Promise<T>; | ||
protected chain: Promise<T>; | ||
resolve: Function; | ||
reject: Function; | ||
constructor(); | ||
then(func: (value: T) => any): any; | ||
catch(func: (value: any) => any): Promise<any>; | ||
then(func: (value: T) => any): Promise<T>; | ||
catch(func: (value: any) => any): Promise<T>; | ||
} | ||
@@ -20,0 +21,0 @@ export declare function merge(a: any, ...objs: any[]): any; |
@@ -87,8 +87,11 @@ var __create = Object.create; | ||
}); | ||
this.chain = this.promise; | ||
} | ||
then(func) { | ||
return this.promise.then.apply(this.promise, arguments); | ||
this.chain = this.chain.then.apply(this.chain, arguments); | ||
return this.chain; | ||
} | ||
catch(func) { | ||
return this.promise.catch(func); | ||
this.chain = this.chain.catch(func); | ||
return this.chain; | ||
} | ||
@@ -95,0 +98,0 @@ } |
{ | ||
"name": "@colyseus/core", | ||
"version": "0.15.45", | ||
"version": "0.15.46", | ||
"description": "Multiplayer Framework for Node.js.", | ||
@@ -5,0 +5,0 @@ "input": "./src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
664194
7373