Gathering detailed insights and metrics for stompjs
Gathering detailed insights and metrics for stompjs
Gathering detailed insights and metrics for stompjs
Gathering detailed insights and metrics for stompjs
Stomp client for Web browsers and node.js apps
npm install stompjs
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
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
1,435 Stars
254 Commits
586 Forks
68 Watching
16 Branches
12 Contributors
Updated on 22 Nov 2024
Minified
Minified + Gzipped
JavaScript (51.43%)
CoffeeScript (32.26%)
HTML (13.15%)
CSS (3.17%)
Cumulative downloads
Total Downloads
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
1
6
1
This library provides a STOMP client for Web browser (using Web Sockets) or node.js applications (either using raw TCP sockets or Web Sockets).
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.
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).
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');
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
To build JavaScript from the CoffeeScript source code:
$ cake build
To run tests:
$ cake test
To continuously run tests on file changes:
$ cake watch
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.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
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
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
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