Module: EventMachine::WebSocket::Close05

Included in:
Handler05
Defined in:
lib/em-websocket/close05.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) close_websocket(code, body)



4
5
6
7
8
# File 'lib/em-websocket/close05.rb', line 4

def close_websocket(code, body)
  # TODO: Ideally send body data and check that it matches in ack
  send_frame(:close, "\x53")
  @state = :closing
end

- (Boolean) supports_close_codes?



10
# File 'lib/em-websocket/close05.rb', line 10

def supports_close_codes?; false; end