spring-framework / org.springframework.web.socket.sockjs.support / AbstractSockJsService / setHeartbeatTime

setHeartbeatTime

open fun setHeartbeatTime(heartbeatTime: Long): Unit

Specify the amount of time in milliseconds when the server has not sent any messages and after which the server should send a heartbeat frame to the client in order to keep the connection from breaking.

The default value is 25,000 (25 seconds).