def disconnected!
      @channels.each { |_name, channel| channel.users.clear }
      @channels.clear
      @users.clear

      @client.network_connection_closed self
    end
def disconnected!
      @channels.each { |_name, channel| channel.users.clear }
      @channels.clear
      @users.clear

      @client.network_connection_closed self
    end
Called when the connection was closed.