Description
STOMP.js is a fully featured STOMP over WebSocket library for browsers and Node.js. It connects to STOMP-over-WebSocket broker endpoints, such as the ones RabbitMQ and ActiveMQ can provide when configured. It supports the STOMP protocol versions 1.0, 1.1 and 1.2. For RabbitMQ, the README says to enable the rabbitmq_web_stomp plugin. Node.js clients can use STOMP over TCP through a separate tcp-wrapper adapter. The library offers a simple, intuitive API for the STOMP protocol, automatic reconnection with configurable delays, and configurable incoming and outgoing heartbeats. It supports binary payloads, and there is RxJS integration through the rx-stomp package. SockJS can be used through the webSocketFactory option, but the README says it needs a separate SockJS client and a compatible server endpoint, and the library does not fall back to SockJS automatically. A broker that supports STOMP over TCP alone is not enough for a direct WebSocket connection. The README covers getting started in browsers and Node.js, upgrading, RxJS usage and TypeScript support, and it links a changelog. The project is hosted on GitHub under stomp-js.…
Highlights
- STOMP over WebSocket for browsers and Node.js
- Supports STOMP 1.0, 1.1 and 1.2
- Automatic reconnection and heartbeats
- Binary payloads
- RxJS integration and TypeScript support
Ratings & Reviews
No ratings yet
Be the first to rate Stompjs.
People also visit
Wampy.js
Feature-rich lightweight WAMP (Web Application Messaging Protocol) Javascript…
Stompjs FAQ
What is STOMP.js?
A STOMP over WebSocket client library for browsers and Node.js.
Which brokers does it work with?
Brokers that expose a STOMP-over-WebSocket endpoint, such as RabbitMQ or ActiveMQ when configured. For RabbitMQ, enable the rabbitmq_web_stomp plugin.
Can Node.js use plain TCP?
Yes, through the separate tcp-wrapper adapter, the README says.
Does it support SockJS?
Optionally, through the webSocketFactory option. It needs a separate SockJS client and a compatible server, and does not fall back to SockJS automatically.
Does it reconnect after a drop?
Yes. It supports automatic reconnection with configurable delays.
What are the best Stompjs alternatives?
Popular alternatives to Stompjs include RPC Websockets, Xmpp.js and Mosquitto. See all Stompjs alternatives