use of org.springframework.messaging.tcp.TcpConnection in project spring-framework by spring-projects.
the class WebSocketStompClientTests method getTcpConnection.
@SuppressWarnings("unchecked")
private TcpConnection<byte[]> getTcpConnection() throws Exception {
WebSocketHandler webSocketHandler = connect();
webSocketHandler.afterConnectionEstablished(this.webSocketSession);
return (TcpConnection<byte[]>) webSocketHandler;
}
Aggregations