@colyseus/core
Advanced tools
Comparing version 0.15.41 to 0.15.42
@@ -540,2 +540,3 @@ var __create = Object.create; | ||
(0, import_Debug.debugMatchMaking)("disposing '%s' (%s) on processId '%s' (graceful shutdown: %s)", roomName, room.roomId, processId, isGracefullyShuttingDown); | ||
room.listing.remove(); | ||
if (!isGracefullyShuttingDown) { | ||
@@ -542,0 +543,0 @@ stats.local.roomCount--; |
@@ -6,3 +6,3 @@ /// <reference types="node" /> | ||
export declare class LocalPresence implements Presence { | ||
channels: EventEmitter; | ||
channels: EventEmitter<[never]>; | ||
data: { | ||
@@ -9,0 +9,0 @@ [roomName: string]: string[]; |
@@ -77,3 +77,3 @@ /// <reference types="node" /> | ||
/** @internal */ | ||
_events: EventEmitter; | ||
_events: EventEmitter<[never]>; | ||
protected seatReservationTime: number; | ||
@@ -80,0 +80,0 @@ protected reservedSeats: { |
@@ -76,9 +76,4 @@ var __create = Object.create; | ||
this.presence = presence; | ||
this._events.once("dispose", async () => { | ||
try { | ||
await this._dispose(); | ||
} catch (e) { | ||
(0, import_Debug.debugAndPrintError)(`onDispose error: ${e && e.message || e || "promise rejected"}`); | ||
} | ||
this._events.emit("disconnect"); | ||
this._events.once("dispose", () => { | ||
this._dispose().then(() => this._events.emit("disconnect")).catch((e) => (0, import_Debug.debugAndPrintError)(`onDispose error: ${e && e.message || e || "promise rejected"}`)); | ||
}); | ||
@@ -489,3 +484,3 @@ this.setPatchRate(this.patchRate); | ||
this._internalState = 2 /* DISPOSING */; | ||
await this.listing.remove(); | ||
this.listing.remove(); | ||
let userReturnData; | ||
@@ -492,0 +487,0 @@ if (this.onDispose) { |
{ | ||
"name": "@colyseus/core", | ||
"version": "0.15.41", | ||
"version": "0.15.42", | ||
"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
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
660503
7346