spring-framework / org.springframework.web.socket.config.annotation / SockJsServiceRegistration / setHeartbeatTime

setHeartbeatTime

open fun setHeartbeatTime(heartbeatTime: Long): SockJsServiceRegistration

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).