<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:int="http://www.springframework.org/schema/integration"
	xmlns:int-websocket="http://www.springframework.org/schema/integration/websocket"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context-4.1.xsd
		http://www.springframework.org/schema/integration/websocket https://www.springframework.org/schema/integration/websocket/spring-integration-websocket.xsd
		http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd">

	<context:property-placeholder />

	<bean id="webSocketClient" class="org.springframework.web.socket.client.standard.StandardWebSocketClient"/>

	<int-websocket:client-container id="clientWebSocketContainer"
									client="webSocketClient"
									uri="ws://localhost:${local.server.port:8080}/time/websocket"/>

	<int-websocket:inbound-channel-adapter container="clientWebSocketContainer"
										   channel="webSocketInputChannel"/>

	<int:logging-channel-adapter id="webSocketInputChannel" logger-name="wsLog"/>

</beans>
