{"id":14963526,"url":"https://github.com/dustin/mqtt-hs","last_synced_at":"2025-04-04T14:07:57.200Z","repository":{"id":41883618,"uuid":"164074758","full_name":"dustin/mqtt-hs","owner":"dustin","description":"Haskell MQTT client.","archived":false,"fork":false,"pushed_at":"2024-10-26T04:53:03.000Z","size":3248,"stargazers_count":41,"open_issues_count":6,"forks_count":26,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-30T00:36:17.197Z","etag":null,"topics":["haskell","iot","mqtt","networking"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dustin.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.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}},"created_at":"2019-01-04T07:38:41.000Z","updated_at":"2024-10-26T04:52:00.000Z","dependencies_parsed_at":"2024-11-12T18:03:35.169Z","dependency_job_id":"94a478ac-7d97-45be-bb19-a8025830484f","html_url":"https://github.com/dustin/mqtt-hs","commit_stats":{"total_commits":380,"total_committers":15,"mean_commits":"25.333333333333332","dds":0.06578947368421051,"last_synced_commit":"037e0d7795573ba30efa957711ef57e834ef4cc9"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin%2Fmqtt-hs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin%2Fmqtt-hs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin%2Fmqtt-hs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin%2Fmqtt-hs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dustin","download_url":"https://codeload.github.com/dustin/mqtt-hs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190250,"owners_count":20898702,"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":["haskell","iot","mqtt","networking"],"created_at":"2024-09-24T13:31:44.666Z","updated_at":"2025-04-04T14:07:57.181Z","avatar_url":"https://github.com/dustin.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mqtt\n\nAn [MQTT][mqtt] protocol implementation for Haskell.\n\n## Client Examples\n\n### Publish\n\n```haskell\nimport Network.MQTT.Client\nimport Network.URI (parseURI)\n\nmain :: IO ()\nmain = do\n  let (Just uri) = parseURI \"mqtt://test.mosquitto.org\"\n  mc \u003c- connectURI mqttConfig uri\n  publish mc \"tmp/topic\" \"hello!\" False\n```\n\n### Subscribe\n\n```haskell\nimport Network.MQTT.Client\nimport Network.URI (parseURI)\n\nmain :: IO ()\nmain = do\n  let (Just uri) = parseURI \"mqtt://test.mosquitto.org\"\n  mc \u003c- connectURI mqttConfig{_msgCB=SimpleCallback msgReceived} uri\n  print =\u003c\u003c subscribe mc [(\"tmp/topic1\", subOptions), (\"tmp/topic2\", subOptions)] []\n  waitForClient mc   -- wait for the the client to disconnect\n\n  where\n    msgReceived _ t m p = print (t,m,p)\n```\n\n[mqtt]: http://mqtt.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustin%2Fmqtt-hs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdustin%2Fmqtt-hs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustin%2Fmqtt-hs/lists"}