Sha256: e8a7f3d9b6535ae117eaee56cc239bd342eef4f32bd1fb49b49fe4659c80c20f

Contents?: true

Size: 555 Bytes

Versions: 10

Compression:

Stored size: 555 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

10 entries across 10 versions & 1 rubygems

Version Path
slack-ruby-client-0.14.4 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.14.3 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.14.2 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.14.1 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.14.0 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.13.1 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.13.0 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.12.0 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.11.1 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.11.0 spec/support/real_time/concurrency/mock.rb