Class: Wamp::Manager::AbortEvent

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

Overview

Abort Event

Direct Known Subclasses

GoodbyeEvent

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



72
73
74
75
# File 'lib/wamp/manager/hello_event.rb', line 72

def emit_event(message)
  session.emit(emit_event_name, message)
  session.close(1000, message.reason)
end

#emit_event_nameObject



68
69
70
# File 'lib/wamp/manager/hello_event.rb', line 68

def emit_event_name
  :close
end