Class: RenderSync::Clients::Faye
- Inherits:
-
Object
- Object
- RenderSync::Clients::Faye
- Defined in:
- lib/render_sync/clients/faye.rb
Defined Under Namespace
Classes: Message
Instance Method Summary collapse
- #batch_publish(*args) ⇒ Object
- #build_message(*args) ⇒ Object
-
#normalize_channel(channel) ⇒ Object
Public: Normalize channel to adapter supported format.
- #setup ⇒ Object
Instance Method Details
#batch_publish(*args) ⇒ Object
10 11 12 |
# File 'lib/render_sync/clients/faye.rb', line 10 def batch_publish(*args) Message.batch_publish(*args) end |
#build_message(*args) ⇒ Object
14 15 16 |
# File 'lib/render_sync/clients/faye.rb', line 14 def (*args) Message.new(*args) end |
#normalize_channel(channel) ⇒ Object
Public: Normalize channel to adapter supported format
channel - The string channel name
Returns The normalized channel prefixed with supported format for Faye
23 24 25 |
# File 'lib/render_sync/clients/faye.rb', line 23 def normalize_channel(channel) "/#{channel}" end |
#setup ⇒ Object
5 6 7 8 |
# File 'lib/render_sync/clients/faye.rb', line 5 def setup require 'faye' # nothing to set up end |