This example project is slightly different compared to the other example projects.
It uses the
/myendpointpath to connect to the application/queueprefix for 1 on 1 communication (client to server and vice versa)/topicprefix to broadcast to all clients
- Copy the
docker-compose.ymlfile to your machine. - Run
$ docker-compose up. - Visit
localhost:8080/springwolf/asyncapi-ui.htmlor try the API:$ curl localhost:8080/springwolf/docs. - Play with the example at
localhost:8080- even with multiple browser windows
Note: You need to execute the gradle bootRun task since the IntelliJ spring application will not include springwolf-ui correctly.
- Clone this repository:
$ git clone https://github.com/springwolf/springwolf-core.git. - Switch to folder:
$ cd springwolf-core/springwolf-examples/springwolf-stomp-example. - Start the application:
$ ../../gradlew bootRun. - Visit
http://localhost:8080/springwolf/asyncapi-ui.htmlor try the API:$ curl http://localhost:8080/springwolf/docs.