{"id":15249854,"url":"https://github.com/otsmr/websocket","last_synced_at":"2025-08-27T11:19:05.642Z","repository":{"id":65512475,"uuid":"452010015","full_name":"otsmr/websocket","owner":"otsmr","description":"Learning different langs by implementing the WebSocket protocoll.","archived":false,"fork":false,"pushed_at":"2024-03-18T12:07:54.000Z","size":622,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-23T07:44:56.002Z","etag":null,"topics":["cpp","rust","websocket","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/otsmr.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,"zenodo":null}},"created_at":"2022-01-25T19:15:35.000Z","updated_at":"2024-11-16T13:39:53.000Z","dependencies_parsed_at":"2024-03-15T14:30:05.917Z","dependency_job_id":"dcbedf82-5828-428f-98b3-98d1aad662c1","html_url":"https://github.com/otsmr/websocket","commit_stats":null,"previous_names":["otsmr/websocket"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/otsmr/websocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsmr%2Fwebsocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsmr%2Fwebsocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsmr%2Fwebsocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsmr%2Fwebsocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otsmr","download_url":"https://codeload.github.com/otsmr/websocket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsmr%2Fwebsocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272325439,"owners_count":24914642,"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-08-27T02:00:09.397Z","response_time":76,"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":["cpp","rust","websocket","zig"],"created_at":"2024-09-29T15:07:18.216Z","updated_at":"2025-08-27T11:19:05.618Z","avatar_url":"https://github.com/otsmr.png","language":"Zig","readme":"# Implementing WebSocket to learn\n\nSometimes I just want to learn a new language, and no, that has nothing to do\nwith [ThePrimeagen](https://twitter.com/ThePrimeagen) ([2022](https://twitter.com/intent/post?text=I%20know,%20Cpp,%20but%20let%20him%20cook,%20he%20just%20did%20not%20know%20@ThePrimeagen%20back%20then,%20so%20do%20not%20blame%20him%20for%20choosing%20Cpp%20in%202022...\u0026url=https://github.com/otsmr/websocket),\n[2023](https://twitter.com/ThePrimeagen/status/1634328728137265155),\n[2024](https://twitter.com/ThePrimeagen/status/1761068465253744641)).\n\n\n## Languages\n### 2024 (current): Zig\n```sh\ncd zig/\nzig build run\n```\n\nThen open `chat.html` for a simple chat application.\n\n### 2023 - Rust\n```sh\ncd rust/\ncargo run\n```\n### 2022 - C++\n```sh\ncd cpp/\n ./build.sh run\n```\n\n## Getting started\n1. Select lang and start server (see above)\n2. Create test connection:\n```sh\ncat ./corpus/handshake - | nc localhost 3000\n```\n\n## tests\n\nThe server implementation can be tested with the\n[Autobahn|Testsuite](https://github.com/crossbario/autobahn-testsuite) as\nfollows:\n\n```bash\n(rust) $ RUST_LOG=debug cargo run --bin wsserver_autobahn\n\n$ docker run -it --rm --net=host \\\n  -v \"${PWD}/tests:/config\" \\\n  -v \"${PWD}/tests/reports:/reports\" \\\n  --name fuzzingclient \\\n  crossbario/autobahn-testsuite \\\n  wstest -m fuzzingclient --spec /config/fuzzingclient.json\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotsmr%2Fwebsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotsmr%2Fwebsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotsmr%2Fwebsocket/lists"}