{"id":37429415,"url":"https://github.com/stomp-js/rx-stomp","last_synced_at":"2026-01-16T06:33:41.865Z","repository":{"id":33651591,"uuid":"152541775","full_name":"stomp-js/rx-stomp","owner":"stomp-js","description":"STOMP adaptor for RxJS","archived":false,"fork":false,"pushed_at":"2025-09-19T02:52:27.000Z","size":2780,"stargazers_count":121,"open_issues_count":11,"forks_count":17,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-09-19T04:27:14.559Z","etag":null,"topics":["activemq","javascript","messaging","rabbitmq","rxjs","stomp","typescript","websocket"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stomp-js.png","metadata":{"files":{"readme":"README.md","changelog":"Change-log.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-10-11T06:27:09.000Z","updated_at":"2025-09-19T02:49:23.000Z","dependencies_parsed_at":"2025-09-19T04:16:50.930Z","dependency_job_id":"2e3e33a0-01c4-4757-80c9-87177e294c1e","html_url":"https://github.com/stomp-js/rx-stomp","commit_stats":{"total_commits":492,"total_committers":10,"mean_commits":49.2,"dds":0.5955284552845528,"last_synced_commit":"24ecf4cd88f5b54af67964d3561517665dfd0d0c"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/stomp-js/rx-stomp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stomp-js%2Frx-stomp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stomp-js%2Frx-stomp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stomp-js%2Frx-stomp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stomp-js%2Frx-stomp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stomp-js","download_url":"https://codeload.github.com/stomp-js/rx-stomp/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stomp-js%2Frx-stomp/sbom","scorecard":{"id":853887,"data":{"date":"2025-08-11","repo":{"name":"github.com/stomp-js/rx-stomp","commit":"a168347e94d99a3676009ee3963b5b376fafe9dc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/docs-refresh.yml:1","Warn: no topLevel permission defined: .github/workflows/linux.yml:1","Warn: no topLevel permission defined: .github/workflows/osx.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Security-Policy","score":0,"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"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs-refresh.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/stomp-js/rx-stomp/docs-refresh.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linux.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/stomp-js/rx-stomp/linux.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linux.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/stomp-js/rx-stomp/linux.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/osx.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/stomp-js/rx-stomp/osx.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/osx.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/stomp-js/rx-stomp/osx.yml/develop?enable=pin","Warn: containerImage not pinned by hash: rabbitmq/Dockerfile:1: pin your Docker image by updating rabbitmq:3.7.7-alpine to rabbitmq:3.7.7-alpine@sha256:e1524c6c6e63528b0a9e6b077ba7fe1be284b4ffaccf663fdf831e948222f2aa","Warn: npmCommand not pinned by hash: bin/ng2-stompjs.sh:13","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   3 out of   4 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"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"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T23:19:00.119Z","repository_id":33651591,"created_at":"2025-08-23T23:19:00.119Z","updated_at":"2025-08-23T23:19:00.119Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activemq","javascript","messaging","rabbitmq","rxjs","stomp","typescript","websocket"],"created_at":"2026-01-16T06:33:41.237Z","updated_at":"2026-01-16T06:33:41.857Z","avatar_url":"https://github.com/stomp-js.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxStomp\n\n[![Build Status](https://travis-ci.org/stomp-js/rx-stomp.svg?branch=master)](https://travis-ci.org/stomp-js/rx-stomp)\n\nAn RxJS-friendly STOMP-over-WebSocket client for the Web and Node.js.\n\n- Guides, FAQs, and API docs: https://stomp-js.github.io/\n- Samples: https://github.com/stomp-js/samples/\n \n# Introduction\n \nThis library allows you to connect to a STOMP broker over WebSocket. This library\nsupports complete STOMP specifications including all current protocol variants. Most\npopular messaging brokers support STOMP and STOMP over WebSockets out-of-the-box\nor using plugins.\n \nThis library uses https://github.com/stomp-js/stompjs under the hood.\n \n## Features\n \n- Simple, RxJS-oriented API\n- STOMP v1.2, v1.1, and v1.0\n- Auto-reconnect with configurable strategies\n- Browser and Node.js support\n- Optional STOMP-over-TCP via custom socket factories\n- Text and binary payloads\n- Heartbeats and connection health hooks\n- Production-friendly for long-running apps and SPAs\n \n## TypeScript definitions\n \nThe npm package includes TypeScript definitions, so there is no need to install it separately.\n \n## Usage\n \n### Browser\n \n```html\n\u003cscript type=\"importmap\"\u003e\n  {\n    \"imports\": {\n      \"@stomp/rx-stomp\": \"https://ga.jspm.io/npm:@stomp/rx-stomp@2.0.1/esm6/index.js\"\n    },\n    \"scopes\": {\n      \"https://ga.jspm.io/\": {\n        \"@stomp/stompjs\": \"https://ga.jspm.io/npm:@stomp/stompjs@7.0.0/esm6/index.js\",\n        \"rxjs\": \"https://ga.jspm.io/npm:rxjs@7.8.1/dist/esm5/index.js\",\n        \"tslib\": \"https://ga.jspm.io/npm:tslib@2.6.2/modules/index.js\",\n        \"uuid\": \"https://ga.jspm.io/npm:uuid@9.0.1/dist/esm-browser/index.js\"\n      }\n    }\n  }\n  \u003c/script\u003e\n \n\u003c!-- ES Module Shims: Import maps polyfill for modules browsers without import maps support (all except Chrome 89+) --\u003e\n\u003cscript async src=\"https://ga.jspm.io/npm:es-module-shims@1.5.1/dist/es-module-shims.js\" crossorigin=\"anonymous\"\u003e\u003c/script\u003e\n \n\u003cscript type=\"module\"\u003e\n  import { RxStomp } from \"@stomp/rx-stomp\";\n \n  const rxStomp = new RxStomp();\n  rxStomp.configure({\n    brokerURL: 'ws://localhost:15674/ws',\n  });\n \n  rxStomp.activate();\n \n  const subscription = rxStomp\n    .watch({ destination: \"/topic/test-rx\" })\n    .subscribe((message) =\u003e console.log(message.body));\n \n  rxStomp.publish({\n    destination: \"/topic/test-rx\",\n    body: \"First message to RxStomp\",\n  });\n \n  setTimeout(async () =\u003e {\n    subscription.unsubscribe();\n    await rxStomp.deactivate();\n  }, 3000);\n\u003c/script\u003e\n```\n \nNotes:\n- For bundlers (Vite, Webpack, Rollup), prefer installing via npm and importing from \"@stomp/rx-stomp\".\n- The example above uses JSPM import maps for quick demos without a build step.\n \n### NodeJS\n \n```bash\n$ npm install @stomp/rx-stomp ws\n```\n \n```javascript\nimport { RxStomp } from \"@stomp/rx-stomp\";\nimport { WebSocket } from 'ws';\n \nObject.assign(global, { WebSocket });\n \nconst rxStomp = new RxStomp();\nrxStomp.configure({\n  brokerURL: 'ws://localhost:15674/ws',\n});\n \nrxStomp.activate();\n \nconst subscription = rxStomp\n  .watch({ destination: \"/topic/test-rx\" })\n  .subscribe((message) =\u003e console.log(message.body));\n \nrxStomp.publish({\n  destination: \"/topic/test-rx\",\n  body: \"First message to RxStomp\",\n});\n \nsetTimeout(async () =\u003e {\n  subscription.unsubscribe();\n  await rxStomp.deactivate();\n}, 3000);\n```\n \nTips:\n- Node.js does not provide a global WebSocket by default; the snippet above wires the 'ws' package into global scope for compatibility.\n- If you prefer not to patch global, provide a factory:\n  ```javascript\n  import { RxStomp } from \"@stomp/rx-stomp\";\n  import { WebSocket } from \"ws\";\n  const rxStomp = new RxStomp();\n  rxStomp.configure({\n    webSocketFactory: () =\u003e new WebSocket(\"ws://localhost:15674/ws\"),\n  });\n  rxStomp.activate();\n  ```\n \n### TypeScript quick start\n \n```typescript\nimport { RxStomp, RxStompConfig } from \"@stomp/rx-stomp\";\n \nconst config: RxStompConfig = {\n  brokerURL: \"ws://localhost:15674/ws\",\n  reconnectDelay: 2000,\n  heartbeatIncoming: 10000,\n  heartbeatOutgoing: 10000,\n};\n \nconst rxStomp = new RxStomp();\nrxStomp.configure(config);\nrxStomp.activate();\n \nconst sub = rxStomp.watch({ destination: \"/topic/news\" }).subscribe(msg =\u003e {\n  console.log(\"News:\", msg.body);\n});\n```\n \n## Further information\n \nSee [https://stomp-js.github.io/](https://stomp-js.github.io/) for instructions and tutorials.\n \nSee samples at: [https://github.com/stomp-js/samples/](https://github.com/stomp-js/samples/).\n \nAPI documentation at:\n[https://stomp-js.github.io/api-docs/latest/classes/RxStomp.html](https://stomp-js.github.io/api-docs/latest/classes/RxStomp.html).\n \n## Troubleshooting\n \n- Connection retries: tune `reconnectDelay`, `maxReconnectDelay`, and `reconnectTimeMode`.\n- Heartbeats: set `heartbeatIncoming`/`heartbeatOutgoing` to detect stale connections.\n- Binary payloads: use `binaryBody` and set an appropriate `content-type`.\n- React Native issue: see [https://stomp-js.github.io/workaround/stompjs/rx-stomp/react-native-additional-notes.html](https://stomp-js.github.io/workaround/stompjs/rx-stomp/react-native-additional-notes.html).\n- SockJS issues: see [https://stomp-js.github.io/guide/stompjs/rx-stomp/using-stomp-with-sockjs.html](https://stomp-js.github.io/guide/stompjs/rx-stomp/using-stomp-with-sockjs.html).\n \n## Change-log\n \nPlease visit [Change Log](Change-log.md).\n \n## Contributing\n \nIf you want to understand the code, develop, or contribute. Please visit\n[How to contribute](Contribute.md).\n \n## Authors\n \n- [Sam Finnigan](https://github.com/sjmf)\n- [Jimi (Dimitris) Charalampidis](https://github.com/JimiC)\n- [Deepak Kumar](https://github.com/kum-deepak)\n- [Astha Deep](https://github.com/astha183)\n- [Michel Promonet](https://github.com/mpromonet)\n- [Ray Booysen](https://github.com/raybooysen)\n- [Matt Critchlow](https://github.com/vigie)\n- [Ivan](https://github.com/akaNightmare)\n- Everyone involved at https://github.com/stomp-js/stompjs\n \n## License\n \n[License](LICENSE) - Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstomp-js%2Frx-stomp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstomp-js%2Frx-stomp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstomp-js%2Frx-stomp/lists"}