isConnectionAuthorized method

bool isConnectionAuthorized(
  1. Channel channel
)

Whether channel may use commands that require an active connection.

Implementation

bool isConnectionAuthorized(Channel channel) {
  return !requiresAuthentication || _authenticatedUsers.containsKey(channel);
}