{"id":15534008,"url":"https://github.com/khanguslee/mqtt-vs-http","last_synced_at":"2026-05-03T06:40:26.211Z","repository":{"id":106156951,"uuid":"169943369","full_name":"khanguslee/MQTT-vs-HTTP","owner":"khanguslee","description":"An investigation into MQTT and HTTP","archived":false,"fork":false,"pushed_at":"2019-02-10T07:32:38.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T22:42:47.079Z","etag":null,"topics":["http","iot","mqtt"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khanguslee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-02-10T04:38:53.000Z","updated_at":"2019-02-10T07:32:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"13827c9d-6971-4cce-b63b-e8a0bbfc0aee","html_url":"https://github.com/khanguslee/MQTT-vs-HTTP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/khanguslee/MQTT-vs-HTTP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanguslee%2FMQTT-vs-HTTP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanguslee%2FMQTT-vs-HTTP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanguslee%2FMQTT-vs-HTTP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanguslee%2FMQTT-vs-HTTP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khanguslee","download_url":"https://codeload.github.com/khanguslee/MQTT-vs-HTTP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanguslee%2FMQTT-vs-HTTP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32560912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["http","iot","mqtt"],"created_at":"2024-10-02T11:40:39.693Z","updated_at":"2026-05-03T06:40:26.194Z","avatar_url":"https://github.com/khanguslee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MQTT-vs-HTTP\n\nAn investigation into MQTT and HTTP. As a project to learn MQTT, this repository aims to investigate whether the MQTT protocol is faster than using HTTP. To do this, we will send the same data to a central server and time how long this trip takes for both protocols.\n\n# HTTP\n\n## Getting started with HTTP\n\nIn the HTTP folder, make sure you download all dependencies using `npm install`. You will need to run the server and client in two different terminal sessions.\n\nTo run the server:\n\n```bash\n    npm start\n```\n\nTo run the client:\n\n```bash\n    node client.js [--number NUMBER]\n```\n\nwhere NUMBER is the number of times you would like to send an HTTP request to the server.\n\n# MQTT\n\n## Getting started with MQTT\n\nYou will first need to download an MQTT broker which acts as a central server that routes data, sent by publishers, to subscribers of a specific topic.\n\nDownload the [mosquitto broker](https://mosquitto.org/download/) to run locally.\n\nDownload node libraries by running `npm install` in the MQTT folder.\n\nTo run the program:\n\n```bash\nnode app.js [--number NUMBER]\n```\n\nwhere NUMBER is the number of times you would like to publish to the topic.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhanguslee%2Fmqtt-vs-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhanguslee%2Fmqtt-vs-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhanguslee%2Fmqtt-vs-http/lists"}