Sha256: a338448144b5f2652ff6e9a35f5729f624264774966112392e010b40ae7a665f
Contents?: true
Size: 521 Bytes
Versions: 3
Compression:
Stored size: 521 Bytes
Contents
# frozen_string_literal: true require_relative "base" module Wamp module Manager module Event # Subscribed Message Event class Subscribed < Base def add_event_listener(listener) session.on(listen_event_name) do |event| listener.call(*event.args, **event.kwargs) end end def emit_event_name "request_#{request_id}" end def listen_event_name "event_#{subscription_id}" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xconn-0.1.2 | lib/wamp/manager/event/subscribed.rb |
xconn-0.1.1 | lib/wamp/manager/event/subscribed.rb |
xconn-0.1.0 | lib/wamp/manager/event/subscribed.rb |