Class: RenderSync::Clients::Faye

Inherits:
Object
  • Object
show all
Defined in:
lib/render_sync/clients/faye.rb

Defined Under Namespace

Classes: Message

Instance Method Summary collapse

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 build_message(*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

#setupObject



5
6
7
8
# File 'lib/render_sync/clients/faye.rb', line 5

def setup
  require 'faye'
  # nothing to set up
end