fix reconnection bugs

This commit is contained in:
MathMan05 2024-07-30 13:23:18 -05:00
parent 03d1bc13c7
commit 1d4c771246
6 changed files with 17 additions and 1 deletions

View file

@ -28,6 +28,9 @@ class SnowFlake {
SnowFlake.FinalizationRegistry.register(this, [id, obj.constructor]);
this.obj = obj;
}
static clear() {
this.SnowFlakes = new Map();
}
/**
* Just to clarify bc TS, it returns a SnowFlake\<type> which is what you entered with the type parameter
*