Sha256: b0c6e728d02cdccb90ec8464cb83cc3da63dc0f17d6dfe619771de1b9ec3d3de

Contents?: true

Size: 567 Bytes

Versions: 10

Compression:

Stored size: 567 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
            reactor = Thread.new {}
            yield self if block_given?
            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 & 2 rubygems

Version Path
slack-ruby-client-bhe-0.5.5 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-bhe-0.5.4 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.7.1 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.7.0 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.6.0 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.5.4 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.5.3 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.5.2 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.5.1 spec/support/real_time/concurrency/mock.rb
slack-ruby-client-0.5.0 spec/support/real_time/concurrency/mock.rb