@colyseus/core 0.18.20 → 0.18.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Room.cjs +4 -1
- package/build/Room.cjs.map +2 -2
- package/build/Room.mjs +4 -1
- package/build/Room.mjs.map +2 -2
- package/package.json +5 -5
- package/src/Room.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colyseus/core",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.21",
|
|
4
4
|
"description": "Multiplayer Framework for Node.js.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"input": "./src/index.ts",
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
"debug": "^4.3.4",
|
|
54
54
|
"msgpackr": "^2.0.1",
|
|
55
55
|
"nanoid": "^3.3.11",
|
|
56
|
-
"@colyseus/
|
|
56
|
+
"@colyseus/greeting-banner": "^4.0.3",
|
|
57
57
|
"@colyseus/shared-types": "^0.18.3",
|
|
58
|
-
"@colyseus/
|
|
58
|
+
"@colyseus/better-call": "^1.3.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@colyseus/schema": "^5.0.8",
|
|
62
62
|
"express": "^5.0.0",
|
|
63
63
|
"vitest": "^3.1.1",
|
|
64
|
-
"@colyseus/redis-driver": "^0.18.5",
|
|
65
64
|
"@colyseus/redis-presence": "^0.18.5",
|
|
66
|
-
"@colyseus/tools": "^0.18.10"
|
|
65
|
+
"@colyseus/tools": "^0.18.10",
|
|
66
|
+
"@colyseus/redis-driver": "^0.18.5"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@colyseus/schema": "^5.0.8",
|
package/src/Room.ts
CHANGED
|
@@ -2007,6 +2007,7 @@ export class Room<T extends RoomOptions = RoomOptions> {
|
|
|
2007
2007
|
}
|
|
2008
2008
|
|
|
2009
2009
|
const cleanup = () => {
|
|
2010
|
+
clearTimeout(this._reservedSeatTimeouts[sessionId]);
|
|
2010
2011
|
delete this._reconnections[reconnectionToken];
|
|
2011
2012
|
delete this._reservedSeats[sessionId];
|
|
2012
2013
|
delete this._reservedSeatTimeouts[sessionId];
|
|
@@ -2022,7 +2023,6 @@ export class Room<T extends RoomOptions = RoomOptions> {
|
|
|
2022
2023
|
previousClient.state = ClientState.RECONNECTED;
|
|
2023
2024
|
previousClient.ref = newClient.ref;
|
|
2024
2025
|
previousClient.reconnectionToken = newClient.reconnectionToken;
|
|
2025
|
-
clearTimeout(this._reservedSeatTimeouts[sessionId]);
|
|
2026
2026
|
|
|
2027
2027
|
}, () => {
|
|
2028
2028
|
this.resetAutoDisposeTimeout();
|
|
@@ -2258,6 +2258,10 @@ export class Room<T extends RoomOptions = RoomOptions> {
|
|
|
2258
2258
|
this._autoDisposeTimeout = undefined;
|
|
2259
2259
|
}
|
|
2260
2260
|
|
|
2261
|
+
for (const sessionId in this._reservedSeatTimeouts) {
|
|
2262
|
+
clearTimeout(this._reservedSeatTimeouts[sessionId]);
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2261
2265
|
// clear all timeouts/intervals + force to stop ticking
|
|
2262
2266
|
this.clock.clear();
|
|
2263
2267
|
this.clock.stop();
|