nodejs driver keepAlive option

I have trouble in understanding mongo driver’s keepAlive field.

  1. what is the allowed value for keepAlive? docs1 states that keep alive takes an integer value and docs2 states that keppAlive takes a boolean value and can be used with keepAliveInitialDelay. so any difference b/w these two?

  2. I tried setting value as 0 for keepAlive and keepAliveInitialDelay, still, I don’t see any difference. so if I set keepAlive to false/0 does driver re-establish the connection each time? what is the actual purpose of it.

thanks in advance.