Sha256: 142a4e327161acc706967390e7f0060f11be3136a334b32a47b44321a7cf7fb1

Contents?: true

Size: 222 Bytes

Versions: 9

Compression:

Stored size: 222 Bytes

Contents

require 'blather/client'

setup 'echo@jabber.local/ping', 'echo'

status :from => Blather::JID.new('echo@jabber.local/pong') do |s|
  say s.from, 'ping'
end

message :chat?, :body => 'pong' do |m|
  say m.from, 'ping'
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
sprsquish-blather-0.4.2 examples/ping.rb
sprsquish-blather-0.4.3 examples/ping.rb
sprsquish-blather-0.4.4 examples/ping.rb
blather-0.4.7 examples/ping.rb
blather-0.4.6 examples/ping.rb
blather-0.4.5 examples/ping.rb
blather-0.4.4 examples/ping.rb
blather-0.4.3 examples/ping.rb
blather-0.4.2 examples/ping.rb