Class: SockJS::Examples::ProtocolConformanceTest::CloseSession

Inherits:
Session show all
Defined in:
lib/sockjs/examples/protocol_conformance_test.rb

Constant Summary

Constants inherited from MetaState::Machine

MetaState::Machine::NON_MESSAGES

Instance Attribute Summary

Attributes inherited from Session

#closing_frame, #data, #disconnect_delay, #interval, #outbox, #response, #transport

Attributes inherited from MetaState::Machine

#current_state

Instance Method Summary collapse

Methods inherited from Session

#after_app_run, #alive?, #check_content_length, #check_response_alive, #clear_all_timers, #clear_timer, #disconnect_expired, #heartbeat_triggered, #initialize, #max_permitted_content_length, #on_close, #parse_json, #process_message, #receive_message, #reset_alive_timer, #reset_close_timer, #reset_disconnect_timer, #reset_heartbeat_timer, #run_user_app, #set_alive_timer, #set_close_timer, #set_disconnect_timer, #set_heartbeat_timer, #set_timer

Methods inherited from MetaState::Machine

add_state, build_void_state, #debug_with, default_state, default_state=, #initialize, state, #state=, state_names, states, void_state_module

Constructor Details

This class inherits a constructor from SockJS::Session

Instance Method Details

#openedObject



47
48
49
50
# File 'lib/sockjs/examples/protocol_conformance_test.rb', line 47

def opened
  SockJS.debug "\033[0;31;40m[Close]\033[0m closing the session ..."
  close(3000, "Go away!")
end