First of all, thank you so much for sharing this! Incredible work.
FYI, I found it helpful to add this.on('error', this.onDisconnect); to the constructor. Without it, I was running into issues reconnecting after closing/reopening webpages.
I also had to change removeSelfFromAwarenessOnUnload to handle some errors disconnecting.
First of all, thank you so much for sharing this! Incredible work.
FYI, I found it helpful to add
this.on('error', this.onDisconnect);
to the constructor. Without it, I was running into issues reconnecting after closing/reopening webpages.I also had to change removeSelfFromAwarenessOnUnload to handle some errors disconnecting.