Search in sources :

Example 1 with TcpConnection

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;
}
Also used : WebSocketHandler(org.springframework.web.socket.WebSocketHandler) TcpConnection(org.springframework.messaging.tcp.TcpConnection)

Aggregations

TcpConnection (org.springframework.messaging.tcp.TcpConnection)1 WebSocketHandler (org.springframework.web.socket.WebSocketHandler)1