Class: Wamp::Manager::Event::Goodbye

Inherits:
Abort
  • Object
show all
Defined in:
lib/wamp/manager/event/goodbye.rb

Overview

Abort Message Event

Instance Attribute Summary

Attributes inherited from Base

#session

Instance Method Summary collapse

Methods inherited from Abort

#emit_event_name

Methods inherited from Base

#emit_event_name, #error?, #initialize, #listen_event_name, #transmit

Constructor Details

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

Instance Method Details

#emit_event(_message) ⇒ Object



10
11
12
13
14
# File 'lib/wamp/manager/event/goodbye.rb', line 10

def emit_event(_message)
  reply = Message::Goodbye.new({}, "wamp.close.goodbye_and_out")
  session.transmit(reply.payload)
  super
end