add keepalive to socket server