{"id":19874520,"url":"https://github.com/strongloop/strong-pubsub-example","last_synced_at":"2025-05-02T10:31:24.075Z","repository":{"id":28893991,"uuid":"32418699","full_name":"strongloop/strong-pubsub-example","owner":"strongloop","description":"Simple example app using strong-pubsub","archived":false,"fork":false,"pushed_at":"2019-02-06T23:13:57.000Z","size":20,"stargazers_count":14,"open_issues_count":10,"forks_count":5,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-04-09T16:18:17.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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":null,"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-17T20:33:29.000Z","updated_at":"2024-04-09T16:18:17.991Z","dependencies_parsed_at":"2022-09-03T07:41:37.924Z","dependency_job_id":null,"html_url":"https://github.com/strongloop/strong-pubsub-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-pubsub-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-pubsub-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-pubsub-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-pubsub-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strongloop","download_url":"https://codeload.github.com/strongloop/strong-pubsub-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224307116,"owners_count":17289744,"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:50.607Z","updated_at":"2024-11-12T16:23:51.473Z","avatar_url":"https://github.com/strongloop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Strong PubSub Example\n\nThis example demonstrates the end-to-end functionality of the **strong-pubsub** modules.\n\n - Publishing (from a node.js CLI program)\n - Subscribing (from a browser and node.js CLI program)\n - Bridge connections (from the browser or TCP)\n - Browserify + Primus (for use in browsers)\n\n## Prerequisites\n\n1. Install [Mosquitto](http://mosquitto.org/) \n2. Make sure that the path to the Mosquito executable is on your system PATH.  For example, on Mac OS, you might need to add `/usr/local/sbin` to your PATH.\n\n## Run the example\n\nTo run:\n\n```\n$ git clone https://github.com/strongloop/strong-pubsub-example.git\n$ cd strong-pubsub-example\n$ npm install\n$ node server.js\n```\n\nTo subscribe:\n\n```\n# open http://localhost:3000 in a browser\n# and open the browser's console\n# note: the browser client will subscribe to the topic \"foo\"\n\n# subscribe directly to mosquitto\n$ TOPIC=foo PORT=6000 node sub\n\n# subscribe to the TCP bridge\n$ TOPIC=foo PORT=3000 node sub\n```\n\nTo publish a message:\n\n```\n# publish directly to mosquitto\n$ TOPIC=foo PORT=6000 node pub\n\n# publish to the TCP bridge\n$ TOPIC=foo PORT=3000 node pub\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrong-pubsub-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongloop%2Fstrong-pubsub-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrong-pubsub-example/lists"}