Class: Blather::Stream::Session
- Defined in:
- lib/blather/stream/features/session.rb
Overview
:nodoc:
Constant Summary collapse
- SESSION_NS =
'urn:ietf:params:xml:ns:xmpp-session'.freeze
Instance Method Summary collapse
-
#initialize(stream, succeed, fail) ⇒ Session
constructor
A new instance of Session.
- #receive_data(stanza) ⇒ Object
Methods inherited from Features
#fail!, from_namespace, #next!, register, #succeed!
Constructor Details
Instance Method Details
#receive_data(stanza) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/blather/stream/features/session.rb', line 13 def receive_data(stanza) @node = stanza case stanza.element_name when 'session' then session when 'iq' then check_response else fail!(UnknownResponse.new(stanza)) end end |