examples/hi_real_time/hi.rb in slack-ruby-client-0.7.1 vs examples/hi_real_time/hi.rb in slack-ruby-client-0.7.2

- old
+ new

@@ -1,11 +1,11 @@ require 'slack-ruby-client' Slack.configure do |config| config.token = ENV['SLACK_API_TOKEN'] config.logger = Logger.new(STDOUT) - config.logger.level = Logger::WARN + config.logger.level = Logger::INFO fail 'Missing ENV[SLACK_API_TOKEN]!' unless config.token end client = Slack::RealTime::Client.new @@ -26,10 +26,9 @@ end end client.on :close do |_data| puts 'Connection closing, exiting.' - EM.stop end client.on :closed do |_data| puts 'Connection has been disconnected.' end