lib/ruboty/slack_rtm/client.rb in ruboty-slack_rtm-2.7.0 vs lib/ruboty/slack_rtm/client.rb in ruboty-slack_rtm-2.7.1

- old
+ new

@@ -5,12 +5,11 @@ module SlackRTM class Client CONNECTION_CLOSED = Object.new def initialize(websocket_url:) - @client = create_client(websocket_url.to_s) - @queue = Queue.new + @client = create_client(websocket_url.to_s) end def send_message(data) data[:id] = Time.now.to_i * 10 + rand(10) @queue.enq(data.to_json)