The first Ruby application framework for writing automated XMPP clients that support Messaging, Ad-Hoc Commands and Publish Subscribe Events. Out of the box you get authentication, authorization, contacts and management statistics.
Writing applications is easy.
gem install agent_xmpp
# agent_xmpp.yml jid: email@example.com password: secret roster: - jid:firstname.lastname@example.org groups: [admin] publish: - node: time title: "Curent Time"
# myapp.rb require 'rubygems' require 'agent_xmpp' command 'hello' do 'Hello World' end discovered_pubsub_node do |serv, node| EventMachine::PeriodicTimer.new(60) do publish_time(Time.now.to_s) end end
The XMPP protocols supported by AgentXMPP are not supported by all clients. The following clients have been tested and provide full support.