Class: Lookbook::Websocket

Inherits:
Object
  • Object
show all
Defined in:
lib/lookbook/websocket.rb

Class Method Summary collapse

Class Method Details

.new(mount_path, **kwargs) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/lookbook/websocket.rb', line 4

def new(mount_path, **kwargs)
  require_relative "cable/cable"

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