{"id":32119787,"url":"https://github.com/httpland/http-websocket","last_synced_at":"2026-05-31T02:31:38.105Z","repository":{"id":54526465,"uuid":"521092529","full_name":"httpland/http-websocket","owner":"httpland","description":"HTTP request for websocket with standard Request and Response","archived":false,"fork":false,"pushed_at":"2022-08-19T03:24:55.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T01:26:01.231Z","etag":null,"topics":["deno","handler","http","request","response","rfc-6455","validate","websocket"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/httpland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2022-08-04T02:09:07.000Z","updated_at":"2023-12-06T15:54:06.000Z","dependencies_parsed_at":"2022-08-13T18:40:39.732Z","dependency_job_id":null,"html_url":"https://github.com/httpland/http-websocket","commit_stats":null,"previous_names":["tomokimiyauci/ws-handler"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/httpland/http-websocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpland%2Fhttp-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpland%2Fhttp-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpland%2Fhttp-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpland%2Fhttp-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/httpland","download_url":"https://codeload.github.com/httpland/http-websocket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpland%2Fhttp-websocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33717415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":["deno","handler","http","request","response","rfc-6455","validate","websocket"],"created_at":"2025-10-20T18:46:08.869Z","updated_at":"2026-05-31T02:31:38.093Z","avatar_url":"https://github.com/httpland.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# websocket-handler\n\nWebSocket handler implementation and other utilities for working with status\ncodes.\n\n## What\n\nThis is the WebSocket **handler** framework. It handles HTTP Request validation\nand error handling, which you must do when you create a WebSocket Server.\n\nYou can concentrate only on WebSocket behavior.\n\n## Features\n\n- Validation for HTTP request what upgrade to WebSocket.\n- Tiny, minimum interface.\n\n## Quick View\n\n```ts\nimport {\n  createHandler,\n  SocketHandler,\n} from \"https://deno.land/x/ws_handler@$VERSION/mod.ts\";\nimport { serve } from \"https://deno.land/std@$VERSION/http/mod.ts\";\nconst socketHandler: SocketHandler = (socket) =\u003e {\n  socket.onopen = () =\u003e {\n    socket.send(\"hello\");\n  };\n};\nconst handler = createHandler(socketHandler);\nserve(handler);\n```\n\n## API\n\n### createHandler\n\nCreate WebSocket request handler.\n\n#### Example\n\n```ts\nimport {\n  createHandler,\n  SocketHandler,\n} from \"https://deno.land/x/ws_handler@$VERSION/mod.ts\";\nconst socketHandler: SocketHandler = (socket) =\u003e {\n  socket.onopen = () =\u003e {\n    socket.send(\"hello\");\n  };\n};\nconst handler = createHandler(socketHandler);\n```\n\n## License\n\nCopyright © 2022-present [TomokiMiyauci](https://github.com/TomokiMiyauci).\n\nReleased under the [MIT](./LICENSE) license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpland%2Fhttp-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttpland%2Fhttp-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpland%2Fhttp-websocket/lists"}