Ruby 28

add configurable heartbeats to detect broken connections