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() {
final subs0 = subs;
if (subs0 != null && subs0.isNotEmpty) {
// clean subscriptions to avoid reconnections
for (var i = 0; i < subs0.length; i++) {
subs0[i].destroy();
}
subs = null;
}
io.destroy(this);
}