1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Better schedule pubsub subscribe

This commit is contained in:
Pratik Naik 2015-10-09 09:09:24 -05:00
parent 9ad20352e9
commit 5858bf3bec

View file

@ -72,7 +72,7 @@ module ActionCable
callback ||= default_stream_callback(broadcasting)
streams << [ broadcasting, callback ]
pubsub.subscribe broadcasting, &callback
EM.next_tick { pubsub.subscribe broadcasting, &callback }
logger.info "#{self.class.name} is streaming from #{broadcasting}"
end