adds keepalive message to client