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