sinatra-sse icon indicating copy to clipboard operation
sinatra-sse copied to clipboard

Unable to receive eventsource close event

Open amitpatelx opened this issue 13 years ago • 0 comments

  sse_stream do |out|
      out.callback do
           puts "Client is diconnected"
       end
      EM.add_periodic_timer(1) do 
        out.push :event => "timer", :data => Time.now.to_s
      end
  end

It doesn't receive close event after closing eventsource from the browser. Hoever browser stops receiving further data.

Tested on Chrome 23.0.1271.97 and FF 17.0.1

amitpatelx avatar Dec 13 '12 11:12 amitpatelx