Stomp client for Web browsers and node.js apps
Installations
npm install stompjs
Releases
2.3.4
Published on 17 Nov 2014
2.3.2
Published on 03 Jul 2014
Fix computation of UTF-8 string length
Published on 18 Feb 2014
Support for node.js app for TCP and Web Sockets
Published on 25 Sept 2013
Support for node.js app for TCP and Web Sockets
Published on 25 Sept 2013
Simplified stomp.js API
Published on 03 Sept 2013
Developer
Developer Guide
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
No
Node Version
NPM Version
1.4.3
Statistics
1,435 Stars
254 Commits
586 Forks
68 Watching
16 Branches
12 Contributors
Updated on 22 Nov 2024
Bundle Size
8.62 kB
Minified
2.97 kB
Minified + Gzipped
Languages
JavaScript (51.43%)
CoffeeScript (32.26%)
HTML (13.15%)
CSS (3.17%)
Total Downloads
Cumulative downloads
Total Downloads
10,281,572
Last day
4.1%
8,724
Compared to previous day
Last week
3.3%
44,745
Compared to previous week
Last month
3.2%
184,505
Compared to previous month
Last year
7.9%
2,280,362
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
6
Optional Dependencies
1
STOMP.js
This library provides a STOMP client for Web browser (using Web Sockets) or node.js applications (either using raw TCP sockets or Web Sockets).
Project Status
This project is no longer maintained (some context about this decision).
If you encounter bugs with it or need enhancements, you can fork it and modify it as the project is under the Apache License 2.0.
Web Browser support
The library file is located in lib/stomp.js
(a minified version is available in lib/stomp.min.js
).
It does not require any dependency (except WebSocket support from the browser or an alternative to WebSocket!)
Online documentation describes the library API (including the annotated source code).
node.js support
Install the 'stompjs' module
$ npm install stompjs
In the node.js app, require the module with:
var Stomp = require('stompjs');
To connect to a STOMP broker over a TCP socket, use the Stomp.overTCP(host, port)
method:
var client = Stomp.overTCP('localhost', 61613);
To connect to a STOMP broker over a WebSocket, use instead the Stomp.overWS(url)
method:
var client = Stomp.overWS('ws://localhost:61614');
Development Requirements
For development (testing, building) the project requires node.js. This allows us to run tests without the browser continuously during development (see cake watch
).
$ npm install
Building and Testing
To build JavaScript from the CoffeeScript source code:
$ cake build
To run tests:
$ cake test
To continuously run tests on file changes:
$ cake watch
Browser Tests
- Make sure you have a running STOMP broker which supports the WebSocket protocol (see the documentation)
- Open in your web browser the project's test page
- Check all tests pass
Use
The project contains examples for using stomp.js to send and receive STOMP messages from a server directly in the Web Browser or in a WebWorker.
Authors
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE.txt:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0
Reason
Found 4/30 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
Project has not signed or included provenance with any releases.
Details
- Warn: release artifact 2.3.1 not signed: https://api.github.com/repos/jmesnil/stomp-websocket/releases/190256
- Warn: release artifact v2.3.0 not signed: https://api.github.com/repos/jmesnil/stomp-websocket/releases/51901
- Warn: release artifact v2.2.0 not signed: https://api.github.com/repos/jmesnil/stomp-websocket/releases/51697
- Warn: release artifact 2.3.1 does not have provenance: https://api.github.com/repos/jmesnil/stomp-websocket/releases/190256
- Warn: release artifact v2.3.0 does not have provenance: https://api.github.com/repos/jmesnil/stomp-websocket/releases/51901
- Warn: release artifact v2.2.0 does not have provenance: https://api.github.com/repos/jmesnil/stomp-websocket/releases/51697
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 6 are checked with a SAST tool
Score
2.8
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More