disconnected method

void disconnected(
  1. Channel channel
)

Releases all authentication state associated with channel.

Implementation

void disconnected(Channel channel) {
  _authenticationTimeouts.remove(channel)?.cancel();
  _authenticating.remove(channel);
  _authenticationRequests.remove(channel);
  final user = _authenticatedUsers.remove(channel);
  if (user != null) _releaseConnection(user);
}