Added option to set keepAlive interval.

Signed-off-by: Davy Vanherbergen <davy.vanherbergen@gmail.com>