Sha256: a28af9839bf13104ebe0b673bcfda6bca1b1e0e81daf56a441c06c0ae13ba77c

Contents?: true

Size: 247 Bytes

Versions: 19

Compression:

Stored size: 247 Bytes

Contents

module Lookbook
  class Websocket
    class << self
      def new(mount_path, **kwargs)
        require_relative "./cable/cable"

        Cable.new(mount_path, **kwargs)
      rescue LoadError
        NullWebsocket.new
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
lookbook-2.0.5 lib/lookbook/websocket.rb
lookbook-2.0.4 lib/lookbook/websocket.rb
lookbook-2.0.3 lib/lookbook/websocket.rb
lookbook-2.0.2 lib/lookbook/websocket.rb
lookbook-2.0.1 lib/lookbook/websocket.rb
lookbook-2.0.0 lib/lookbook/websocket.rb
lookbook-2.0.0.rc.3 lib/lookbook/websocket.rb
lookbook-2.0.0.rc.2 lib/lookbook/websocket.rb
lookbook-2.0.0.rc.1 lib/lookbook/websocket.rb
lookbook-2.0.0.beta.9 lib/lookbook/websocket.rb
lookbook-2.0.0.beta.8 lib/lookbook/websocket.rb
lookbook-2.0.0.beta.7 lib/lookbook/websocket.rb
lookbook-2.0.0.beta.6 lib/lookbook/websocket.rb
lookbook-2.0.0.beta.5 lib/lookbook/websocket.rb
lookbook-2.0.0.beta.4 lib/lookbook/websocket.rb
lookbook-2.0.0.beta.3 lib/lookbook/websocket.rb
lookbook-2.0.0.beta.2 lib/lookbook/websocket.rb
lookbook-2.0.0.beta.1 lib/lookbook/websocket.rb
lookbook-2.0.0.beta.0 lib/lookbook/websocket.rb