Module: EventMachine::WebSocket::Close75

Included in:
Handler75, Handler76
Defined in:
lib/em-websocket/close75.rb

Instance Method Summary collapse

Instance Method Details

#close_websocket(code, body) ⇒ Object


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

def close_websocket(code, body)
  @state = :closed
  @connection.close_connection_after_writing
end