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

setDisconnectDelay

open fun setDisconnectDelay(disconnectDelay: Long): SockJsServiceRegistration

The amount of time in milliseconds before a client is considered disconnected after not having a receiving connection, i.e. an active connection over which the server can send data to the client.

The default value is 5000.