lib/khronos/server/runner.rb in khronos-0.0.1 vs lib/khronos/server/runner.rb in khronos-0.0.2.pre1
- old
+ new
@@ -9,9 +9,10 @@
def post_init
puts "-- someone connected to the server!"
end
def receive_data json
+ puts "Receive data to run: #{json}"
schedule = JSON.parse(json)
send_data ">>> you sent: #{schedule.inspect}"
# Close connection with client immediatelly
close_connection