List of usage examples for org.springframework.web.socket.client.standard StandardWebSocketClient StandardWebSocketClient
public StandardWebSocketClient(WebSocketContainer webSocketContainer)
From source file:ymanv.forex.SockJsClientTest.java
private static StandardWebSocketClient createWebSocketClient() throws Exception { return new StandardWebSocketClient(createWebSocketContainer()); }
From source file:com.codeveo.lago.bot.stomp.client.AbstractHttpLagoBot.java
protected AbstractHttpLagoBot() { objectMapper = new ObjectMapper(); objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); /* jaxb only */ JaxbAnnotationModule module = new JaxbAnnotationModule(); objectMapper.registerModule(module); taskExecutor = new ThreadPoolTaskExecutor(); taskExecutor.setMaxPoolSize(THREAD_POOL_SIZE); taskExecutor.initialize();//from ww w . j ava2 s .c o m WebSocketContainer webSocketContainer = ContainerProvider.getWebSocketContainer(); webSocketContainer.setDefaultMaxSessionIdleTimeout(CLIENT_MAX_IDLE_TIMEOUT); webSocketClient = new StandardWebSocketClient(webSocketContainer); webSocketClient.setTaskExecutor(taskExecutor); }