Class: Wamp::Manager::PublishedEvent

Inherits:
Base
  • Object
show all
Defined in:
lib/wamp/manager/hello_event.rb

Overview

Published Event

Instance Attribute Summary

Attributes inherited from Base

#session

Instance Method Summary collapse

Methods inherited from Base

#auth, #authenticate, constantize, demodulize, #initialize, instance_from, #on_message, #run, #transmit

Constructor Details

This class inherits a constructor from Wamp::Manager::Base

Instance Method Details

#emit_event(message) ⇒ Object



174
175
176
# File 'lib/wamp/manager/hello_event.rb', line 174

def emit_event(message)
  session.emit(emit_event_name, message)
end

#emit_event_nameObject



170
171
172
# File 'lib/wamp/manager/hello_event.rb', line 170

def emit_event_name
  "request_#{request_id}"
end

#listen_event_nameObject



178
179
180
# File 'lib/wamp/manager/hello_event.rb', line 178

def listen_event_name
  "request_#{request_id}"
end