lib/rasti/web/render.rb in rasti-web-0.2.3 vs lib/rasti/web/render.rb in rasti-web-1.0.0

- old
+ new

@@ -70,17 +70,9 @@ def view(template, locals={}, layout_template=nil) layout(layout_template) { view_context.render template, locals } end - def server_sent_events(channel_id) - response.status = 200 - response['Content-Type'] = 'text/event-stream' - response['Cache-Control'] = 'no-cache' - response['Connection'] = 'keep-alive' - response.body = Channel[channel_id].subscribe - end - private def respond_with(status, headers, body) response.status = status if status response.headers.merge! headers \ No newline at end of file