code: @Bean
  	public ThreadPoolTaskScheduler messageBrokerSockJsTaskScheduler() {
  		ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
  		scheduler.setThreadNamePrefix("WampSockJS-");
  		scheduler.setPoolSize(Runtime.getRuntime().availableProcessors());
  		scheduler.setRemoveOnCancelPolicy(true);
  		return scheduler;
  	}
docs: The default TaskScheduler to use if none is configured via
  {@link SockJsServiceRegistration#setTaskScheduler(org.springframework.scheduling.TaskScheduler)}
  , i.e.
  
  <pre class="code">
  &#064;Configuration
  public class WampConfig extends DefaultWampConfiguration {
  
  public void registerWampEndpoints(WampEndpointRegistry registry) {
  registry.addEndpoint(&quot;/wamp&quot;).withSockJS().setTaskScheduler(myScheduler());
  }
  
  // ...
  }
  </pre>