Skip to content

Instantly share code, notes, and snippets.

@c7
Created January 13, 2009 02:54
Show Gist options
  • Save c7/46294 to your computer and use it in GitHub Desktop.
Save c7/46294 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'xmpp4r'
include Jabber
Jabber.debug = true
client = Client.new(JID::new(""))
client.connect('talk.google.com',5222)
client.auth("")
# client.send(Presence.new.set_type(:available))
msg = Message::new("", "Hello...")
msg.type = :chat
client.send(msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment