Installations
npm install architect-stompjs
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.22.1
NPM Version
6.14.12
Score
70.2
Supply Chain
98.8
Quality
79.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
bimedia-fr
Download Statistics
Total Downloads
8,748
Last Day
1
Last Week
42
Last Month
352
Last Year
2,333
GitHub Statistics
Apache-2.0 License
62 Commits
1 Forks
9 Watchers
9 Branches
2 Contributors
Updated on Jun 10, 2021
Package Meta Information
Latest Version
2.2.1
Package Id
architect-stompjs@2.2.1
Unpacked Size
25.38 kB
Size
7.73 kB
File Count
7
NPM Version
6.14.12
Node Version
12.22.1
Total Downloads
Cumulative downloads
Total Downloads
8,748
Last Day
-80%
1
Compared to previous day
Last Week
-53.3%
42
Compared to previous week
Last Month
153.2%
352
Compared to previous month
Last Year
43.6%
2,333
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
architect-stompjs
Expose a stompit client as an architect service.
Installation
1npm install --save architect-stompjs
Config Format
1{ 2 "packagePath": "architect-stompjs", 3 config: [{ 4 host: 'localhost', 5 port: 61613 6 }] 7}
Supported config elements
config
Config element is an array of servers as in stompit connection servers.
#### srv
Aternatively, specify a SRV dns name to lookup hosts and ports from DNS.
1{ 2 "packagePath": "architect-stompjs", 3 srv: { 4 name: 'activemq.example.com' 5 opts: { 6 connectHeaders: { 7 'heart-beat': '25000,25000' 8 } 9 } 10 } 11}
queues
Add a queues
object to configure queues avaliable in your application.
topics
Add a topics
object to configure topics avaliable in your application.
Usage
Boot Architect :
1var path = require('path'); 2var architect = require("architect"); 3 4var configPath = path.join(__dirname, "config.js"); 5var config = architect.loadConfig(configPath); 6 7architect.createApp(config, function (err, app) { 8 if (err) { 9 throw err; 10 } 11 console.log('application started'); 12});
This module require architect-log4js or equivalent as logging service.
Configure sptom service with config.js
:
1module.exports = [{ 2 packagePath: "architect-stompjs" 3}{ 4 packagePath: "architect-log4js" 5}, './routes'];
Consume stomp service in your application :
1{ 2 "name": "routes", 3 "version": "0.0.1", 4 "main": "index.js", 5 "private": true, 6 7 "plugin": { 8 "consumes": ["stomp"] 9 } 10}
Eventually use the stomp
service in your app :
1module.exports = function setup(options, imports, register) { 2 var stomp = imports.stomp; //get stomp client 3 stomp.channel.send('/queue/myqueue', {}, 'application has started.'); 4 register(); 5};
Using Queues Alias
Configure your alias in the architect config.js
file :
1{ 2 "packagePath": "architect-log4js", 3 config: [{ 4 host: 'localhost', 5 port: 61613 6 }], 7 queues: { 8 'myqueue' : { 9 'destination': '/queue/my.queue.name.is.super.long' 10 'ack': 'client', 11 } 12 } 13}
Now you can send and recieve messages with the queue alias :
1module.exports = function setup(options, imports, register) { 2 var client = imports.stomp; //get stomp client 3 var myqueue = client.queues.myqueue; 4 myqueue.send('application has started.'); 5 register(); 6};
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
Found 1/27 approved changesets -- score normalized to 0
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
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 4 are checked with a SAST tool
Reason
14 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
Score
1.7
/10
Last Scanned on 2025-02-10
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