Sha256: e7b262b8e343ae3ab319093d2850b761e0fd6975714630740f8182848fe5282a

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

require "nio/websocket/adapter"

module NIO
  module WebSocket
    class Adapter
      class Client < Adapter
        def initialize(url, io, options)
          @url = url
          driver = ::WebSocket::Driver.client(self, options[:websocket_options] || {})
          super io, driver, options
          WebSocket.logger.debug "Initiating handshake on #{io}"
          driver.start
        end
        attr_reader :url
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nio4r-websocket-0.7.0 lib/nio/websocket/adapter/client.rb