Permalink
Browse files

update example to new API, drop TLS

  • Loading branch information...
igrigorik committed Oct 30, 2012
1 parent 06190ab commit cfef9511736e152dcd907ed7067a78b38c000656
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/spdy_server.rb
View
@@ -6,7 +6,7 @@
class SPDYHandler < EM::Connection
def post_init
@parser = SPDY::Parser.new
- @parser.on_headers do |stream_id, associated_stream, priority, headers|
+ @parser.on_headers do |stream_id, headers|
p [:SPDY_HEADERS, headers]
sr = SPDY::Protocol::Control::SynReply.new({:zlib_session => @parser.zlib_session})
@@ -29,10 +29,10 @@ def post_init
p [:SPDY, :sent, :DATA_FIN]
end
- start_tls
end
def receive_data(data)
+ p [:received, data]
@parser << data
end

0 comments on commit cfef951

Please sign in to comment.