keepalive interval should be in 1000 milliseconds