I want to establish a STOMP
connection between my server and a java test client. The destination of the websocket would be something like localhost:1234/data/websocket/
.
None of the java stomp implementations seem to support such an address format. Is there a way to create a STOMP connection to such an endpoint?
You should take a look to this documentation : Using WebSocket to build an interactive web application
Using WebSocket to build an interactive web application
This guide walks you through the process of creating a "hello world" application that sends messages back and forth, between a browser and the server. WebSocket is a very thin, lightweight layer above TCP. It makes it very suitable to use "subprotocols" to embed messages. In this guide we'll dive in and use STOMP messaging with Spring to create an interactive web application.
Finally I decided to use the Spring STOMP
client. It was the only client I found, which was able to connect to such a specific endpoint.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.