lib/em-websocket/handler.rb in em-websocket-0.2.1 vs lib/em-websocket/handler.rb in em-websocket-0.3.0
- old
+ new
@@ -26,13 +26,11 @@
def receive_data(data)
@data << data
process_data(data)
end
- def close_websocket
- # Unless redefined in a subclass, just close the connection
- @state = :closed
- @connection.close_connection_after_writing
+ def close_websocket(code, body)
+ # Implemented in subclass
end
def unbind
@state = :closed
@connection.trigger_on_close