Skip to content
/ stomp4j Public

Biblioteca Java para o protocolo Stomp. Suporta conexões TCP e Web Scoket

License

Notifications You must be signed in to change notification settings

vepo/stomp4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stomp4J

Stomp client for Java.

Implemented Versions

This library can support all Stomp versions, but it was not test in others than 1.2

Possible Clients

  • 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");
    }

Features

  1. Topic/Queue subscription
  2. Topic/Queue unsubscription
  3. Send messages

About

Biblioteca Java para o protocolo Stomp. Suporta conexões TCP e Web Scoket

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published