Class: Wamp::Manager::EventEvent

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

Overview

Event 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



138
139
140
# File 'lib/wamp/manager/hello_event.rb', line 138

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

#emit_event_nameObject



134
135
136
# File 'lib/wamp/manager/hello_event.rb', line 134

def emit_event_name
  "event_#{subscription_id}"
end

#listen_event_nameObject

Raises:

  • (NotImplementedError)


142
143
144
# File 'lib/wamp/manager/hello_event.rb', line 142

def listen_event_name
  raise NotImplementedError
end