lib/async_cable.rb in async_cable-0.1.0 vs lib/async_cable.rb in async_cable-0.2.0
- old
+ new
@@ -14,10 +14,10 @@
yield config
end
def broadcast(data)
config.logger.debug { "#{name}.broadcast data=#{data.inspect}" }
- Registry.find.each { |conn| conn.transmit(data) }
+ Registry.each { |conn| conn.transmit(data) }
end
module_function :configure, :config, :broadcast
config # initialize config right away to prevent racing.
end