I hereby claim:
- I am salmanasiddiqui on github.
- I am salmanasiddiqui (https://keybase.io/salmanasiddiqui) on keybase.
- I have a public key ASB3U7pxY0IgFNlVHuYdDQ5Xp73D3WyeGA0vjZiCSU-DDwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class NotificationsController < ApplicationController | |
def notify_me | |
# Rails reserve a db connection from connection pool for each request, lets put it back into connection pool. | |
ActiveRecord::Base.clear_active_connections! | |
# required header | |
response.headers['Content-Type'] = 'text/event-stream' | |
sse = ActionController::Live::SSE.new(response.stream) |