lib/slack/real_time/concurrency/eventmachine.rb in slack-ruby-client-0.14.6 vs lib/slack/real_time/concurrency/eventmachine.rb in slack-ruby-client-0.15.0

- old
+ new

@@ -6,12 +6,12 @@ module RealTime module Concurrency module Eventmachine class Client < Faye::WebSocket::Client def initialize(url, protocols = nil, options = {}) - @logger = - options.fetch(:logger) || Slack::RealTime::Config.logger || Slack::Config.logger - super url, protocols, options.except(:logger) + options = options.dup + @logger = options.delete(:logger) || Slack::RealTime::Config.logger || Slack::Config.logger + super url, protocols, options end def parse(data) logger.debug("#{self.class}##{__method__}") { data } super data