lib/em-websocket/handler.rb in em-websocket-0.2.0 vs lib/em-websocket/handler.rb in em-websocket-0.2.1
- old
+ new
@@ -23,10 +23,10 @@
# Implemented in subclass
end
def receive_data(data)
@data << data
- process_data
+ process_data(data)
end
def close_websocket
# Unless redefined in a subclass, just close the connection
@state = :closed