{"id":19874501,"url":"https://github.com/strongloop/strong-pubsub-primus","last_synced_at":"2025-06-18T20:39:06.285Z","repository":{"id":28901176,"uuid":"32425972","full_name":"strongloop/strong-pubsub-primus","owner":"strongloop","description":"Primus compatibility layer for strong-pubsub.","archived":false,"fork":false,"pushed_at":"2018-10-07T04:31:01.000Z","size":19,"stargazers_count":6,"open_issues_count":4,"forks_count":4,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-06-09T07:56:03.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/strongloop/strong-pubsub","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strongloop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-17T23:18:07.000Z","updated_at":"2018-07-10T09:46:52.000Z","dependencies_parsed_at":"2022-08-02T16:01:17.738Z","dependency_job_id":null,"html_url":"https://github.com/strongloop/strong-pubsub-primus","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/strongloop/strong-pubsub-primus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-pubsub-primus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-pubsub-primus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-pubsub-primus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-pubsub-primus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strongloop","download_url":"https://codeload.github.com/strongloop/strong-pubsub-primus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-pubsub-primus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260630496,"owners_count":23039117,"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":[],"created_at":"2024-11-12T16:23:42.354Z","updated_at":"2025-06-18T20:39:01.272Z","avatar_url":"https://github.com/strongloop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strong-pubsub-primus\n\n[Primus](https://www.npmjs.com/package/primus) compatibility layer for [`strong-pubsub`][strong-pubsub-repo].\n\n## Installation\n\n```\nnpm install --save strong-pubsub-primus\n```\n\n## Use\n\nCreate a client as you would normally do using [`strong-pubsub`][strong-pubsub-repo] and pass in the Primus transport as the third argument:\n\n```js\nvar Client = require('strong-pubsub');\nvar Adapter = require('strong-pubsub-mqtt');\nvar PrimusTransport = require('strong-pubsub-primus'); // require the primus tranport\n\nvar client = new Client({\n  host: 'localhost',\n  port: 1883\n}, Adapter, PrimusTranport); // pass it in as the third argument\n```\n\n**NOTE**: You will need a preconfigured Primus server to act as the broker.\n\n[strong-pubsub-repo]: https://github.com/strongloop/strong-pubsub\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrong-pubsub-primus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongloop%2Fstrong-pubsub-primus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrong-pubsub-primus/lists"}