lib/faye/websocket/api.rb in faye-websocket-0.10.3 vs lib/faye/websocket/api.rb in faye-websocket-0.10.4

- old
+ new

@@ -34,9 +34,12 @@ @ping = options[:ping] @ping_id = 0 @buffered_amount = 0 + @close_params = @ping_timer = @proxy = @stream = nil + @onopen = @onmessage = @onclose = @onerror = nil + @driver.on(:open) { |e| open } @driver.on(:message) { |e| receive_message(e.data) } @driver.on(:close) { |e| begin_close(e.reason, e.code) } @driver.on(:error) do |error|