Stomp client for Java.
This library can support all Stomp versions, but it was not test in others than 1.2
- STOMP Protocol Specification, Version 1.2
- STOMP Protocol Specification, Version 1.1
- STOMP Protocol Specification, Version 1.0
- UK Network Rail
try (var client = new StompClient("ws://publicdatafeeds.networkrail.co.uk:61618", new UserCredential(System.getenv("USERNAME"), System.getenv("PASSWORD")))) { client.connect(); client.subscribe("/topic/TRAIN_MVT_ALL_TOC", data -> { // consume train data }); client.join(); client.unsubscribe("/topic/TRAIN_MVT_ALL_TOC"); }
- Topic/Queue subscription
- Topic/Queue unsubscription
- Send messages