lib/async_cable.rb in async_cable-0.2.0 vs lib/async_cable.rb in async_cable-0.2.1

- old
+ new

@@ -4,17 +4,22 @@ require 'async_cable/registry' require 'async_cable/connection' require 'async_cable/server' module AsyncCable + + # @return [Async::Config] def config @config ||= Config.new end + # @yield [Async::Config] def configure yield config end + # Transmit data to all WS connections. + # @param data [Hash] def broadcast(data) config.logger.debug { "#{name}.broadcast data=#{data.inspect}" } Registry.each { |conn| conn.transmit(data) } end