Class: Wamp::Manager::ErrorEvent

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

Overview

Error 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



87
88
89
# File 'lib/wamp/manager/hello_event.rb', line 87

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

#emit_event_nameObject



83
84
85
# File 'lib/wamp/manager/hello_event.rb', line 83

def emit_event_name
  "request_#{request_id}"
end