Deprecated as of 5.0 a TaskScheduler is not provided upfront, not until it is obvious that it is needed; call SockJsServiceRegistration.getTaskScheduler() to check and then SockJsServiceRegistration.setTaskScheduler(TaskScheduler) to set it before a call to SockJsServiceRegistration.createSockJsService()
SockJsServiceRegistration sockJsServiceRegistration = registration.withSockJS(); if (this.sockJsServiceOptions.webSocketEnabled != null) { sockJsServiceRegistration.setWebSocketEnabled(this.sockJsServiceOptions.webSocketEnabled);
SockJsServiceRegistration sockJsServiceRegistration = registration.withSockJS(); if (this.sockJsServiceOptions.webSocketEnabled != null) { sockJsServiceRegistration.setWebSocketEnabled(this.sockJsServiceOptions.webSocketEnabled);