{"id":15366640,"url":"https://github.com/turbomack/hs-websockets-workshop","last_synced_at":"2026-01-26T02:36:01.413Z","repository":{"id":143366621,"uuid":"415005899","full_name":"turboMaCk/hs-websockets-workshop","owner":"turboMaCk","description":"Intoroduction to websockets in Haskell","archived":false,"fork":false,"pushed_at":"2021-10-14T15:32:57.000Z","size":46,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-24T21:42:11.446Z","etag":null,"topics":["haskell","tutorial","websockets"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/turboMaCk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-10-08T13:53:37.000Z","updated_at":"2023-07-31T15:40:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"890335cd-26c7-43a8-9146-c387d86f26de","html_url":"https://github.com/turboMaCk/hs-websockets-workshop","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"5486c48f13bc663a467d7b3628252f9e82a52eb6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/turboMaCk/hs-websockets-workshop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turboMaCk%2Fhs-websockets-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turboMaCk%2Fhs-websockets-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turboMaCk%2Fhs-websockets-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turboMaCk%2Fhs-websockets-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turboMaCk","download_url":"https://codeload.github.com/turboMaCk/hs-websockets-workshop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turboMaCk%2Fhs-websockets-workshop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28765148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T02:25:41.078Z","status":"ssl_error","status_checked_at":"2026-01-26T02:24:28.809Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["haskell","tutorial","websockets"],"created_at":"2024-10-01T13:19:23.586Z","updated_at":"2026-01-26T02:36:01.379Z","avatar_url":"https://github.com/turboMaCk.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebSockets Server in Haskell\n\nSimple example implementation of websockets server in haskell.\n\n1. See [`Main.hs`](app/Main.hs) for instructions\n2. Client code already [implemeted](index.html)\n3. Nix and Stack ready\n4. [Open live app](http://chat.planning-game.com)\n5. Check [cheat branch](https://github.com/turboMaCk/hs-websockets-workshop/tree/cheat) for example implementation\n\n## Nix\n\n- you can use `cabal` within `nix-shell`\n- to enable [direnv](https://direnv.net/) use `echo \"use_nix\" \u003e .envrc \u0026\u0026 direnv allow`\n- you can use `nix-build` to build project using nix\n\n## Stack\n\n- stack based workflow should be working. use `stack --help` to learn how to use it.\n\n## Intro\n\nToday we're building:\n\n- simple steteful websockets based chat room\n- no database\n- using STM for state\n- no wai/warp\n- no MTL, tagless final etc. Beginner Haskell\n- persistent sessions, multiple connections per session etc.\n\n## More resources\n\n- [Jasper's own introduction to websockets](https://jaspervdj.be/websockets/example/server.html)\n- [servant-websockets](https://hackage.haskell.org/package/servant-websockets) for Servant projects\n- [wai-websockets](https://hackage.haskell.org/package/wai-websockets) for any wai app\n- [check hackage](https://hackage.haskell.org/packages/search?terms=websockets) for more\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbomack%2Fhs-websockets-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbomack%2Fhs-websockets-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbomack%2Fhs-websockets-workshop/lists"}