destroy method
void
destroy()
Called upon forced client/server side disconnections, this method ensures the manager stops tracking us and that reconnections don't get triggered for this.
@api private.
Implementation
void destroy() {
if (subs?.isNotEmpty == true) {
// clean subscriptions to avoid reconnections
for (var i = 0; i < subs!.length; i++) {
subs![i].destroy();
}
subs = null;
}
io.destroy(this);
}