Method: Blather::Stream::Session#receive_data

Defined in:
lib/blather/stream/features/session.rb

#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