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

setHttpMessageCacheSize

open fun setHttpMessageCacheSize(httpMessageCacheSize: Int): SockJsServiceRegistration

The number of server-to-client messages that a session can cache while waiting for the next HTTP polling request from the client. All HTTP transports use this property since even streaming transports recycle HTTP requests periodically.

The amount of time between HTTP requests should be relatively brief and will not exceed the allows disconnect delay (see #setDisconnectDelay(long)), 5 seconds by default.

The default size is 100.