Ви не можете вибрати більше 25 тем
Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
Rohan Sircar
e2e2d17d87
|
4 роки тому | |
---|---|---|
LICENSE | 4 роки тому | |
README.md | 4 роки тому | |
stompTest.sc | 4 роки тому |
README.md
Scala Stomp Client Demo
A demo of using a stomp client in Scala with an Ammonite script. Makes use of the java library java-stomp-ws and provides two convenience extension methods. By default the script queries the websocket endpoints of Chatto.
Usage
You need to have ammonite installed.
Once you have done that, start a local instance of Chatto, and run the command -
amm stompTest.sc --username yourusername --password yourpassword
or
./stompTest.sc --username yourusername --password yourpassword
Sample output -
Success(true)
Connected
Server message: pong
Server message: {"toUser":"admin","fromUser":"nova","messageContent":"hello"}
License
Licensed under The Unlicense