module Loco::Emitter
Public Instance Methods
add_hub(name, members = [])
click to toggle source
# File lib/loco/emitter.rb, line 14 def add_hub(name, members = []) Loco.add_hub(name, members) end
del_hub(name)
click to toggle source
# File lib/loco/emitter.rb, line 22 def del_hub(name) Loco.del_hub(name) end
emit(obj, event = nil, opts = {})
click to toggle source
# File lib/loco/emitter.rb, line 6 def emit(obj, event = nil, opts = {}) Loco.emit(obj, event, opts) end
emit_to(recipient_s, data)
click to toggle source
# File lib/loco/emitter.rb, line 10 def emit_to(recipient_s, data) Loco.emit_to(recipient_s, data) end
get_hub(name)
click to toggle source
# File lib/loco/emitter.rb, line 18 def get_hub(name) Loco.get_hub(name) end