Class: Blather::Stream::Session
- Defined in:
- lib/blather/stream/features/session.rb
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!, #feature?, from_namespace, #next!, register, #succeed!
Constructor Details
Instance Method Details
#receive_data(stanza) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/blather/stream/features/session.rb', line 14 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 |