Module: EventMachine::WebSocket::Close03
- Included in:
- Handler03
- Defined in:
- lib/em-websocket/close03.rb
Instance Method Summary collapse
Instance Method Details
#close_websocket(code, body) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/em-websocket/close03.rb', line 4 def close_websocket(code, body) # TODO: Ideally send body data and check that it matches in ack send_frame(:close, '') @state = :closing start_close_timeout end |
#supports_close_codes? ⇒ Boolean
11 |
# File 'lib/em-websocket/close03.rb', line 11 def supports_close_codes?; false; end |