Gathering detailed insights and metrics for @stomp/rx-stomp
Gathering detailed insights and metrics for @stomp/rx-stomp
Gathering detailed insights and metrics for @stomp/rx-stomp
Gathering detailed insights and metrics for @stomp/rx-stomp
@stomp/tcp-wrapper
TCP wrapper for NodeJS sockets to use STOMP over TCP with @stomp/stompjs and @stomp/rx-stomp
@stomp/stompjs
STOMP client for Javascript and Typescript
stompjs
STOMP for JavaScript apps (Web browser & node.js)
react-stomp-hooks
A react library to interact with a stomp connection via hooks
npm install @stomp/rx-stomp
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
113 Stars
690 Commits
21 Forks
4 Watching
12 Branches
5 Contributors
Updated on 24 Oct 2024
TypeScript (93.51%)
JavaScript (4.9%)
Shell (1.24%)
Dockerfile (0.34%)
Cumulative downloads
Total Downloads
Last day
3.1%
10,072
Compared to previous day
Last week
0.5%
47,824
Compared to previous week
Last month
7.6%
203,995
Compared to previous month
Last year
9.6%
2,148,410
Compared to previous year
3
21
This library provides an RxJS oriented STOMP over WebSocket client for Web browser and node.js applications.
Please visit https://stomp-js.github.io/ for guides, FAQs and API docs.
This library allows you to connect to a STOMP broker over WebSocket. This library supports complete STOMP specifications including all current protocol variants. Most popular messaging brokers support STOMP and STOMP over WebSockets out-of-the-box or using plugins.
This library uses https://github.com/stomp-js/stompjs under the hood.
The npm package includes TypeScript definitions, so there is no need to install it separately.
1<script type="importmap"> 2 { 3 "imports": { 4 "@stomp/rx-stomp": "https://ga.jspm.io/npm:@stomp/rx-stomp@2.0.0/esm6/index.js" 5 }, 6 "scopes": { 7 "https://ga.jspm.io/": { 8 "@stomp/stompjs": "https://ga.jspm.io/npm:@stomp/stompjs@7.0.0/esm6/index.js", 9 "rxjs": "https://ga.jspm.io/npm:rxjs@7.8.0/dist/esm5/index.js", 10 "tslib": "https://ga.jspm.io/npm:tslib@2.5.0/modules/index.js", 11 "uuid": "https://ga.jspm.io/npm:uuid@9.0.0/dist/esm-browser/index.js" 12 } 13 } 14 } 15 </script> 16 17<!-- ES Module Shims: Import maps polyfill for modules browsers without import maps support (all except Chrome 89+) --> 18<script async src="https://ga.jspm.io/npm:es-module-shims@1.5.1/dist/es-module-shims.js" crossorigin="anonymous"></script> 19 20<script type="module"> 21 import { RxStomp } from "@stomp/rx-stomp"; 22 23 const rxStomp = new RxStomp(); 24 rxStomp.configure({ 25 brokerURL: 'ws://localhost:15674/ws', 26 }); 27 28 rxStomp.activate(); 29 30 const subscription = rxStomp 31 .watch({ destination: "/topic/test-rx" }) 32 .subscribe((message) => console.log(message.body)); 33 34 rxStomp.publish({ 35 destination: "/topic/test-rx", 36 body: "First message to RxStomp", 37 }); 38 39 setTimeout(async () => { 40 subscription.unsubscribe(); 41 await rxStomp.deactivate(); 42 }, 3000); 43</script>
1$ npm install @stomp/rx-stomp ws
1import { RxStomp } from "@stomp/rx-stomp"; 2import { WebSocket } from 'ws'; 3 4Object.assign(global, { WebSocket}); 5 6const rxStomp = new RxStomp(); 7rxStomp.configure({ 8 brokerURL: 'ws://localhost:15674/ws', 9}); 10 11rxStomp.activate(); 12 13const subscription = rxStomp 14 .watch({ destination: "/topic/test-rx" }) 15 .subscribe((message) => console.log(message.body)); 16 17rxStomp.publish({ 18 destination: "/topic/test-rx", 19 body: "First message to RxStomp", 20}); 21 22setTimeout(async () => { 23 subscription.unsubscribe(); 24 await rxStomp.deactivate(); 25}, 3000);
See https://stomp-js.github.io/ for instructions and tutorials.
See samples at: https://github.com/stomp-js/samples/.
API documentation at: https://stomp-js.github.io/api-docs/latest/classes/RxStomp.html.
Please visit Change Log.
If you want to understand the code, develop, or contribute. Please visit How to contribute.
License - Apache-2.0
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
branch protection not enabled on development/release branches
Details
Reason
13 existing vulnerabilities detected
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