Class: EventMachine::WebSocket::Handshake

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby/riddl/protocols/websocket.rb

Instance Method Summary collapse

Instance Method Details

#receive_data(data) ⇒ Object



44
45
46
47
48
49
# File 'lib/ruby/riddl/protocols/websocket.rb', line 44

def receive_data(data)
  data.request_url = Riddl::Protocols::Utils::escape(data.request_url)
  @parser = data
  @headers = data.headers
  process(@headers, data.body)
end