Gathering detailed insights and metrics for @stomp/stompjs
Gathering detailed insights and metrics for @stomp/stompjs
Gathering detailed insights and metrics for @stomp/stompjs
Gathering detailed insights and metrics for @stomp/stompjs
react-stompjs
React websocket High Order Component with @stomp/stompjs (V5) over SockJS
@stomp/tcp-wrapper
TCP wrapper for NodeJS sockets to use STOMP over TCP with @stomp/stompjs and @stomp/rx-stomp
@yqg/socket-client
@stomp/stompjs & socket.io-client with sharedworker
@stomp/rx-stomp
RxJS STOMP client for Javascript and Typescript
Javascript and Typescript Stomp client for Web browsers and node.js apps
npm install @stomp/stompjs
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
774 Stars
740 Commits
81 Forks
17 Watching
9 Branches
7 Contributors
Updated on 27 Nov 2024
TypeScript (54.13%)
JavaScript (45.24%)
Shell (0.47%)
Dockerfile (0.16%)
Cumulative downloads
Total Downloads
Last day
7.2%
38,465
Compared to previous day
Last week
1.7%
194,114
Compared to previous week
Last month
6.7%
787,332
Compared to previous month
Last year
39.4%
8,451,982
Compared to previous year
19
This library provides a 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.
1<!-- 2 JSPM Generator Import Map 3 Edit URL: https://generator.jspm.io/#U2NgYGBkDM0rySzJSU1hcCguyc8t0AeTWcUO5noGega6SakliaYAYTzJAykA 4 --> 5<script type="importmap"> 6 { 7 "imports": { 8 "@stomp/stompjs": "https://ga.jspm.io/npm:@stomp/stompjs@7.0.0/esm6/index.js" 9 } 10 } 11</script> 12 13<!-- ES Module Shims: Import maps polyfill for modules browsers without import maps support (all except Chrome 89+) --> 14<script 15 async 16 src="https://ga.jspm.io/npm:es-module-shims@1.5.1/dist/es-module-shims.js" 17 crossorigin="anonymous" 18></script> 19 20<script type="module"> 21 import { Client } from '@stomp/stompjs'; 22 23 const client = new Client({ 24 brokerURL: 'ws://localhost:15674/ws', 25 onConnect: () => { 26 client.subscribe('/topic/test01', message => 27 console.log(`Received: ${message.body}`) 28 ); 29 client.publish({ destination: '/topic/test01', body: 'First Message' }); 30 }, 31 }); 32 33 client.activate(); 34</script>
1$ npm install @stomp/stompjs ws
1import { Client } from '@stomp/stompjs'; 2 3import { WebSocket } from 'ws'; 4Object.assign(global, { WebSocket }); 5 6const client = new Client({ 7 brokerURL: 'ws://localhost:15674/ws', 8 onConnect: () => { 9 client.subscribe('/topic/test01', message => 10 console.log(`Received: ${message.body}`) 11 ); 12 client.publish({ destination: '/topic/test01', body: 'First Message' }); 13 }, 14}); 15 16client.activate();
The API documentation is hosted as GitHub pages for the StompJS family of libraries. You may head straight to the https://stomp-js.github.io/api-docs/latest/
This library comes with detailed usage instructions. Please find it at Usage instructions. Check out other guides at https://stomp-js.github.io/.
There is quite detailed API documentation, you should start at https://stomp-js.github.io/api-docs/latest/classes/Client.html.
if you were using an older version of this library, you would need to make changes to your code. Head to Upgrading.
https://github.com/stomp-js/rx-stomp is based on this library and exposes the entire functionality offered by this library as RxJS Observables.
The npm package includes TypeScript definitions, so there is no need to install it separately.
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 3 issue activity found in the last 90 days -- score normalized to 2
Reason
Found 1/14 approved changesets -- score normalized to 0
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
14 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