Sets the number of keep-alive messages which may be sent without receiving any messages back from the server.
If this threshold is reached while keep-alive messages are being sent, the connection will be disconnected.