Sha256: 26672c66062fd4dd81a2828c6fa7a08a097af1507f7229374ce96747bb3814f7
Contents?: true
Size: 679 Bytes
Versions: 13
Compression:
Stored size: 679 Bytes
Contents
module Blather # :nodoc: class Stream # :nodoc: class Session < StreamHandler # :nodoc: def initialize(stream, to) super stream @to = to end private ## # Send a start session command def session response = Stanza::Iq.new :set response.to = @to sess = XMPPNode.new 'session' sess['xmlns'] = 'urn:ietf:params:xml:ns:xmpp-session' response << sess @stream.send response end ## # The server should respond with a <result> node if all is well def result success end ## # Server returned an error. def error failure StanzaError.import(@node) end end end end
Version data entries
13 entries across 13 versions & 2 rubygems