Class: Faye::WebSocket::API::CloseEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/faye/websocket/api/event.rb

Constant Summary

Constants inherited from Event

Event::AT_TARGET, Event::BUBBLING_PHASE, Event::CAPTURING_PHASE

Instance Attribute Summary collapse

Attributes inherited from Event

#bubbles, #cancelable, #current_target, #event_phase, #target, #type

Method Summary

Methods inherited from Event

create, #init_event, #initialize, #prevent_default, #stop_propagation

Constructor Details

This class inherits a constructor from Faye::WebSocket::API::Event

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



37
38
39
# File 'lib/faye/websocket/api/event.rb', line 37

def code
  @code
end

#reasonObject (readonly)

Returns the value of attribute reason.



37
38
39
# File 'lib/faye/websocket/api/event.rb', line 37

def reason
  @reason
end