Class: Wamp::Manager::HelloEvent

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

Overview

message

Instance Attribute Summary

Attributes inherited from Base

#session

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

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

Instance Method Details

#add_event_listenerObject



42
43
44
# File 'lib/wamp/manager/hello_event.rb', line 42

def add_event_listener
  session.transmit(payload)
end

#emit_event_nameObject

Raises:

  • (RuntimeError)


46
47
48
# File 'lib/wamp/manager/hello_event.rb', line 46

def emit_event_name
  raise RuntimeError
end

#listen_event_nameObject



50
51
52
# File 'lib/wamp/manager/hello_event.rb', line 50

def listen_event_name
  :join
end