lib/slack/real_time/client.rb in slack-ruby-client-1.0.0 vs lib/slack/real_time/client.rb in slack-ruby-client-1.1.0

- old
+ new

@@ -42,18 +42,18 @@ callbacks[type] << block end # Start RealTime client and block until it disconnects. def start!(&block) - @callback = block if block_given? + @callback = block if block build_socket @socket.start_sync(self) end # Start RealTime client and return immediately. # The RealTime::Client will run in the background. def start_async(&block) - @callback = block if block_given? + @callback = block if block build_socket @socket.start_async(self) end def stop!