@genex-ai/multiplayer 0.8.5 → 0.8.6
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/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -493,6 +493,7 @@ function attachSession(client, initialRoom) {
|
|
|
493
493
|
const key = String(id);
|
|
494
494
|
localObjState.delete(key);
|
|
495
495
|
if (objOwners.get(key) === room.sessionId) objOwners.delete(key);
|
|
496
|
+
clearStreamClock(OBJ_PREFIX + key);
|
|
496
497
|
send0("release", { id: key });
|
|
497
498
|
},
|
|
498
499
|
remove(id) {
|
|
@@ -522,6 +523,8 @@ function attachSession(client, initialRoom) {
|
|
|
522
523
|
if (isMine && mine) {
|
|
523
524
|
state = mine;
|
|
524
525
|
raw = mine;
|
|
526
|
+
smoothed.set(OBJ_PREFIX + key, mine);
|
|
527
|
+
smoothedAt.set(OBJ_PREFIX + key, now());
|
|
525
528
|
} else {
|
|
526
529
|
raw = objRaw.get(key) ?? {};
|
|
527
530
|
state = sampleSmoothed(OBJ_PREFIX + key, now()) ?? raw;
|