Sha256: 1d77a39e8f9902dcf9957e24a11848bfba20b06ed648fa2e395434f856787afa

Contents?: true

Size: 564 Bytes

Versions: 13

Compression:

Stored size: 564 Bytes

Contents

module Slack
  module RealTime
    module Concurrency
      module Mock
        class WebSocket
        end

        class Socket < ::Slack::RealTime::Socket
          def self.close
          end

          def start_async(client)
            reactor = Thread.new {}
            client.run_loop
            reactor
          end

          def send_data(message)
            driver.send(message)
          end

          protected

          def connect
            @driver = WebSocket.new(url, nil, options)
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
slack-ruby-client-0.10.0 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.9.1 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.9.0 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.8.1 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.8.0 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.7.9 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.7.8 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.7.7 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.7.6 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.7.5 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.7.4 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.7.3 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.7.2 spec/support/real_time/concurrency/mock.rb