Class: Rage::Cable::WebSocketConnection Abstract
- Inherits:
-
Object
- Object
- Rage::Cable::WebSocketConnection
- Defined in:
- lib/rage/cable/cable.rb
Overview
This class is abstract.
Instance Method Summary collapse
-
#close ⇒ Object
Close the connection.
-
#subscribe(name) ⇒ Object
Subscribe to a channel.
-
#unsubscribe(name) ⇒ Object
Unsubscribe from a channel.
-
#write(data) ⇒ Object
Write data to the connection.
Instance Method Details
#close ⇒ Object
Close the connection.
177 178 179 180 |
# File 'lib/rage/cable/cable.rb', line 177 module Adapters autoload :Base, "rage/cable/adapters/base" autoload :Redis, "rage/cable/adapters/redis" end |
#subscribe(name) ⇒ Object
Subscribe to a channel.
177 178 179 180 |
# File 'lib/rage/cable/cable.rb', line 177 module Adapters autoload :Base, "rage/cable/adapters/base" autoload :Redis, "rage/cable/adapters/redis" end |
#unsubscribe(name) ⇒ Object
Unsubscribe from a channel.
177 178 179 180 |
# File 'lib/rage/cable/cable.rb', line 177 module Adapters autoload :Base, "rage/cable/adapters/base" autoload :Redis, "rage/cable/adapters/redis" end |
#write(data) ⇒ Object
Write data to the connection.
177 178 179 180 |
# File 'lib/rage/cable/cable.rb', line 177 module Adapters autoload :Base, "rage/cable/adapters/base" autoload :Redis, "rage/cable/adapters/redis" end |