{"id":18888641,"url":"https://github.com/beevelop/ng-stomp","last_synced_at":"2025-12-12T04:06:32.108Z","repository":{"id":28333565,"uuid":"31846723","full_name":"beevelop/ng-stomp","owner":"beevelop","description":":bookmark_tabs: STOMP for AngularJS","archived":false,"fork":false,"pushed_at":"2018-03-07T16:07:31.000Z","size":121,"stargazers_count":44,"open_issues_count":6,"forks_count":43,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-10T08:46:53.145Z","etag":null,"topics":["angularjs","bower","npm","sockjs","stomp"],"latest_commit_sha":null,"homepage":"http://beevelop.github.io/stomp-ui/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beevelop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-08T11:00:29.000Z","updated_at":"2024-11-30T05:18:32.000Z","dependencies_parsed_at":"2022-08-22T20:50:26.394Z","dependency_job_id":null,"html_url":"https://github.com/beevelop/ng-stomp","commit_stats":null,"previous_names":["beevelop/angular-stomp"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevelop%2Fng-stomp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevelop%2Fng-stomp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevelop%2Fng-stomp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevelop%2Fng-stomp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beevelop","download_url":"https://codeload.github.com/beevelop/ng-stomp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351394,"owners_count":21089272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["angularjs","bower","npm","sockjs","stomp"],"created_at":"2024-11-08T07:45:22.792Z","updated_at":"2025-12-12T04:06:26.861Z","avatar_url":"https://github.com/beevelop.png","language":"JavaScript","readme":"[![npm](https://img.shields.io/npm/v/ng-stomp.svg?style=flat-square)](https://www.npmjs.com/package/ng-stomp)\n[![Travis](https://img.shields.io/travis/beevelop/ng-stomp.svg?style=flat-square)](https://travis-ci.org/beevelop/ng-stomp)\n[![Maintainability](https://api.codeclimate.com/v1/badges/cbb91c2e42568f6889b7/maintainability)](https://codeclimate.com/github/beevelop/ng-stomp/maintainability)\n[![Gemnasium](https://img.shields.io/gemnasium/beevelop/ng-stomp.svg?style=flat-square)](https://gemnasium.com/beevelop/ng-stomp)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)\n[![Beevelop](https://links.beevelop.com/honey-badge)](https://beevelop.com)\n\n# ngStomp\n\n\u003e [STOMP](http://jmesnil.net/stomp-websocket/doc/) promised for [AngularJS](https://angularjs.org)\n\n## Installation\n\n### Install via npm:\n```bash\nnpm install --save ng-stomp\n```\n\n#### Add standalone version (dependencies included) to your HTML file\n```html\n\u003cscript src=\"node_modules/ng-stomp/dist/ng-stomp.standalone.min.js\"\u003e\u003c/script\u003e\n```\n\n#### Or add SockJS + STOMP + (minified) Stompie individually:\n```html\n\u003cscript src=\"node_modules/sockjs/sockjs.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/@stomp/stompjs/lib/stomp.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/ng-stomp/dist/ng-stomp.min.js\"\u003e\u003c/script\u003e\n```\n----\n\n## Usage\nInject it in your controller:\n```js\nangular\n  // Declare ngStomp as a dependency for you module\n  .module('app', ['ngStomp'])\n\n  // use $stomp in your controllers, services, directives,...\n  .controller('Ctrl', function ($stomp, $scope, $log) {\n    $stomp.setDebug(function (args) {\n      $log.debug(args)\n    })\n\n    $stomp\n      .connect('/endpoint', connectHeaders)\n\n      // frame = CONNECTED headers\n      .then(function (frame) {\n        var subscription = $stomp.subscribe('/dest', function (payload, headers, res) {\n          $scope.payload = payload\n        }, {\n          'headers': 'are awesome'\n        })\n\n        // Unsubscribe\n        subscription.unsubscribe()\n\n        // Send message\n        $stomp.send('/dest', {\n          message: 'body'\n        }, {\n          priority: 9,\n          custom: 42 // Custom Headers\n        })\n\n        // Disconnect\n        $stomp.disconnect().then(function () {\n          $log.info('disconnected')\n        })\n      })\n  })\n```\n\n## API-Docs (TBD)\n- setDebug(callback)\n- connect(endpoint, headers)\n- disconnect\n- subscribe(destination, callback, headers)\n- on(destination, callback, headers)\n- unsubscribe(subscription)\n- off(subscription)\n- send(destination, body, headers)\n\n## Breaking changes\n- Bower support has been removed from `v0.5.0` onwards. Please switch to npm / yarn.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeevelop%2Fng-stomp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeevelop%2Fng-stomp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeevelop%2Fng-stomp/lists"}