lib/faye/websocket/api.rb in faye-websocket-0.8.0 vs lib/faye/websocket/api.rb in faye-websocket-0.9.0

- old
+ new

@@ -22,9 +22,13 @@ if headers = options[:headers] headers.each { |name, value| @driver.set_header(name, value) } end + [*options[:extensions]].each do |extension| + @driver.add_extension(extension) + end + @ping = options[:ping] @ping_id = 0 @ready_state = CONNECTING @buffered_amount = 0