Sha256: 3396fea7b3a26de494913edbaa984ee93bd024e3695ad1734c962d78e124b424

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

# TODO: remove in v7
module Loco
  module Emitter
    def emit(obj, event = nil, opts = {})
      Loco.emit(obj, event, opts)
    end

    def emit_to(recipient_s, data)
      Loco.emit_to(recipient_s, data)
    end

    def add_hub(name, members = [])
      Loco.add_hub(name, members)
    end

    def get_hub(name)
      Loco.get_hub(name)
    end

    def del_hub(name)
      Loco.del_hub(name)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loco-rails-7.0.0.pre lib/loco/emitter.rb
loco-rails-6.2.0 lib/loco/emitter.rb
loco-rails-6.1.0 lib/loco/emitter.rb