spring-framework / org.springframework.web.socket.sockjs.client / SockJsClient / setConnectTimeoutScheduler

setConnectTimeoutScheduler

open fun setConnectTimeoutScheduler(connectTimeoutScheduler: TaskScheduler): Unit

Configure a TaskScheduler for scheduling a connect timeout task where the timeout value is calculated based on the duration of the initial SockJS "Info" request. The connect timeout task ensures a more timely fallback but is otherwise entirely optional.

By default this is not configured in which case a fallback may take longer.

Parameters

connectTimeoutScheduler - the task scheduler to use