List of STOMP Client Libraries

STOMP is a relatively simple protocol, which means that there's a large number of third-party libraries available for it, of varying quality. This list is intended to help with the process of working out which libraries to avoid, and which might be more suitable. Note that this list is not exhaustive, is not based on extensive testing, and it's not a comprehensive list of recommendations.

The table

  • Highest version supported – Highest STOMP version the client supports. 1.2 is best, 1.1 is usually acceptable, 1.0 lacks support for heartbeating.
  • Acknowledgements – Can you send an ACK for a frame? If not, you won't be able to set up a durable subscription.
  • content-length – If a client doesn't support the content-length header, it won't work with the push port.

If using the Network Rail feeds on the Artemis server, if your client sends nothing for 60 seconds, you will be disconnected. If you're using a relatively high-volume feed, acknowledgements are one way around this with STOMP 1.0, on later versions, heartbeating is the way to go.

If a library supports all 1.2 features when tested, its name will be in bold.

Potentially viable STOMP clients

LanguageName/versionLinksHighest version supportedheartbeatingacknowledgementscontent-lengthremarks
PHPstomp-php 5.1.0https://github.com/stomp-php/stomp-php https://packagist.org/packages/stomp-php/stomp-php1.2yesyesyesOK for feeds, not necessarily for general use [1]
Pythonstomp.py 8.1.0https://pypi.org/project/stomp.py/1.2yesyesyes
PerlNet::STOMP::Client 2.5https://metacpan.org/pod/Net::STOMP::Client1.2yesyesyes
JSstompit 1.0.0https://www.npmjs.com/package/stompit1.2yesyesyes
Gostomp 3.0.5https://pkg.go.dev/github.com/go-stomp/stomp/v31.2yesyesyes
Rubystomp 1.4.10https://rubygems.org/gems/stomp1.1yesyesyes
ElixirBarytherium 0.6.2https://hex.pm/packages/barytherium1.2yesyesyes
ErlangPlatybelodon 0.1.0https://hex.pm/packages/platybelodon1.2yesyesyes

Clients which only support 1.0 with a viable alternative, or which have significant bugs

LanguageName/versionLinksHighest version supportedheartbeatingacknowledgementscontent-lengthremarks
PHPstomp 2.0.3https://www.php.net/manual/en/class.stomp.php https://pecl.php.net/package/stomp1.0noyesyes
JavaGozirrahttps://github.com/pedroteixeira/gozirra1.0nono ?Not suitable for feeds
JSstomp-client 0.9.0https://www.npmjs.com/package/stomp-client1.0noyesyesclaimed 1.1 support is broken[2]

References

Network Rail Open Data Feeds
Data Feeds About the Feeds Account States Durable Subscriptions Example Code ( PHP / C# / Java / Ruby / Node.js) STOMP Client Libraries Advanced Uses FAQ Release Notes
RTPPM RTPPM Feed
Train Movements Train Movements Feed Train Activation Train Cancellation Train Movement Train Reinstatement Change of Origin Change of Identity Change of Location TSPEED Field Planned Cancellations Cancellation Codes
TD TD Feed C-Class Messages S-Class Messages Train Describers TD Berths
VSTP VSTP Feed
TSR TSR Feed Route Codes
SCHEDULE SCHEDULE Feed TIPLOC Records Schedule and Location Records Association Records CIF Codes How Scheduling Works Allowances
Reference Data Reference Data Feed TOC Codes CIF Codes Delay Attribution Codes Identifying Locations (STANOX, TIPLOC, NLC and 3-Alpha Codes) STANOX Geographical Areas Train Planning data (BPLAN)
This article is issued from Openraildata. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.