resources/redis_config.rb in plezi-0.11.2 vs resources/redis_config.rb in plezi-0.12.0

- old
+ new

@@ -8,13 +8,15 @@ # ## ==== # ## # ## Sets up Plezi to use Radis broadcast. # ## # ## If Plezi Redis Automation is enabled: - # ## Plezi creates is own listening thread for each Controller class that broadcasts using Redis. + # ## Plezi creates is own listening thread that listens for each Controller class that broadcasts using Redis. # ## (using the Controller.redis_connection and Controller.redis_channel_name class methods) # ## + # ## Only one thread will be created and initiated during startup (dynamically created controller routes might be ignored). + # ## # ## this overrides the default Controller#broadcast method which is very powerful but # ## is limited to one process. # ## # ENV['PL_REDIS_URL'] ||= ENV['REDIS_URL'] || ENV['REDISCLOUD_URL'] || ENV['REDISTOGO_URL'] || "redis://username:password@my.host:6389" @@ -31,10 +33,10 @@ # RADIS_THREAD = Thread.new do # Redis.new(host: RADIS_URI.host, port: RADIS_URI.port, password: RADIS_URI.password).subscribe(RADIS_CHANNEL) do |on| # on.message do |channel, msg| # msg = JSON.parse(msg) # # do stuff, i.e.: - # # Plezi.run_async(msg) { |m| Plezi.info m.to_s } + # # Plezi.run(msg) { |m| Plezi.info m.to_s } # end # end # end end \ No newline at end of file