{"id":16579992,"url":"https://github.com/tfausak/wuss","last_synced_at":"2025-10-13T13:38:35.060Z","repository":{"id":30443373,"uuid":"33996781","full_name":"tfausak/wuss","owner":"tfausak","description":":lock: Secure WebSocket (WSS) clients in Haskell.","archived":false,"fork":false,"pushed_at":"2025-10-04T13:28:52.000Z","size":124,"stargazers_count":69,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-04T15:22:20.438Z","etag":null,"topics":["haskell","websocket"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/wuss","language":"Haskell","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/tfausak.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-04-15T13:53:42.000Z","updated_at":"2025-10-04T13:28:55.000Z","dependencies_parsed_at":"2023-02-12T19:16:08.185Z","dependency_job_id":"60e99b0f-5db0-44c3-a51d-6fe1bc766121","html_url":"https://github.com/tfausak/wuss","commit_stats":null,"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/tfausak/wuss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Fwuss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Fwuss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Fwuss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Fwuss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tfausak","download_url":"https://codeload.github.com/tfausak/wuss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Fwuss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015349,"owners_count":26085684,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["haskell","websocket"],"created_at":"2024-10-11T22:19:48.083Z","updated_at":"2025-10-13T13:38:35.027Z","avatar_url":"https://github.com/tfausak.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wuss\n\n[![CI](https://github.com/tfausak/wuss/actions/workflows/ci.yml/badge.svg)](https://github.com/tfausak/wuss/actions/workflows/ci.yml)\n[![Hackage](https://badgen.net/hackage/v/wuss)](https://hackage.haskell.org/package/wuss)\n\nSecure WebSocket (WSS) clients in Haskell.\n\n---\n\nWuss is a library that lets you easily create secure WebSocket clients over the\nWSS protocol. It is a small addition to [the `websockets` package][] and is\nadapted from existing solutions by [@jaspervdj][], [@mpickering][], and\n[@elfenlaid][].\n\n-   [Installation](#installation)\n-   [Usage](#usage)\n\n## Installation\n\nTo add Wuss as a dependency to your package, add it to your Cabal file.\n\n```\nbuild-depends: wuss\n```\n\nFor other use cases, install it with Cabal.\n\n``` sh\n$ cabal install wuss\n```\n\n## Usage\n\n``` hs\nimport Wuss\n\nimport Control.Concurrent (forkIO)\nimport Control.Monad (forever, unless, void)\nimport Data.Text (Text, pack)\nimport Network.WebSockets (ClientApp, receiveData, sendClose, sendTextData)\n\nmain :: IO ()\nmain = runSecureClient \"echo.websocket.org\" 443 \"/\" ws\n\nws :: ClientApp ()\nws connection = do\n    putStrLn \"Connected!\"\n\n    void . forkIO . forever $ do\n        message \u003c- receiveData connection\n        print (message :: Text)\n\n    let loop = do\n            line \u003c- getLine\n            unless (null line) $ do\n                sendTextData connection (pack line)\n                loop\n    loop\n\n    sendClose connection (pack \"Bye!\")\n```\n\nFor more information about Wuss, please read [the Haddock documentation][].\n\n[the `websockets` package]: https://hackage.haskell.org/package/websockets\n[@jaspervdj]: https://gist.github.com/jaspervdj/7198388\n[@mpickering]: https://gist.github.com/mpickering/f1b7ba3190a4bb5884f3\n[@elfenlaid]: https://gist.github.com/elfenlaid/7b5c28065e67e4cf0767\n[semantic versioning]: http://semver.org/spec/v2.0.0.html\n[the change log]: CHANGELOG.md\n[the haddock documentation]: https://hackage.haskell.org/package/wuss\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfausak%2Fwuss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftfausak%2Fwuss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfausak%2Fwuss/lists"}