def connected_resources(jid, from, proxies=true)
      jid, from = JID.new(jid), JID.new(from)
      return [] unless @config.allowed?(jid, from)

      local = @clients[jid.bare] || EMPTY
      local = local.select {|stream| stream.user.jid == jid } unless jid.bare?
      remote = proxies ? proxies(jid) : EMPTY
      [local, remote].flatten
    end
def connected_resources(jid, from, proxies=true)
      jid, from = JID.new(jid), JID.new(from)
      return [] unless @config.allowed?(jid, from)

      local = @clients[jid.bare] || EMPTY
      local = local.select {|stream| stream.user.jid == jid } unless jid.bare?
      remote = proxies ? proxies(jid) : EMPTY
      [local, remote].flatten
    end
Returns streams for all connected resources for this JID. A resource is
 considered connected after it has completed authentication and resource
 binding.