{"id":13495815,"url":"https://github.com/http-rs/tide-websockets","last_synced_at":"2025-04-07T07:18:28.895Z","repository":{"id":48814759,"uuid":"316062807","full_name":"http-rs/tide-websockets","owner":"http-rs","description":"\"just open a socket\"","archived":false,"fork":false,"pushed_at":"2023-05-21T00:11:58.000Z","size":46,"stargazers_count":74,"open_issues_count":5,"forks_count":20,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-31T06:07:18.428Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.rs/tide-websockets/","language":"Rust","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/http-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-11-25T22:00:09.000Z","updated_at":"2025-02-07T10:29:36.000Z","dependencies_parsed_at":"2024-01-16T09:54:05.374Z","dependency_job_id":"5dd0355d-814b-43c7-828e-6f93e25cda01","html_url":"https://github.com/http-rs/tide-websockets","commit_stats":{"total_commits":29,"total_committers":8,"mean_commits":3.625,"dds":0.3448275862068966,"last_synced_commit":"c3e1d987911dd7b411b90238d92d29fc047b59bc"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Ftide-websockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Ftide-websockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Ftide-websockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-rs%2Ftide-websockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/http-rs","download_url":"https://codeload.github.com/http-rs/tide-websockets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608160,"owners_count":20965953,"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":[],"created_at":"2024-07-31T19:01:38.505Z","updated_at":"2025-04-07T07:18:28.869Z","avatar_url":"https://github.com/http-rs.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# tide-websockets\n\n\n## experimental websockets handler for [tide](https://github.com/http-rs/tide) based on [async-tungstenite](https://github.com/sdroege/async-tungstenite)\n\n* [CI ![CI][ci-badge]][ci]\n* [API Docs][docs] [![docs.rs docs][docs-badge]][docs]\n* [Releases][releases] [![crates.io version][version-badge]][lib-rs]\n\n[ci]: https://github.com/http-rs/tide-websockets/actions?query=workflow%3ACI\n[ci-badge]: https://github.com/http-rs/tide-websockets/workflows/CI/badge.svg\n[releases]: https://github.com/http-rs/tide-websockets/releases\n[docs]: https://docs.rs/tide-websockets\n[lib-rs]: https://lib.rs/tide-websockets\n[docs-badge]: https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square\n[version-badge]: https://img.shields.io/crates/v/tide-websockets.svg?style=flat-square\n\n## Installation\n```sh\n$ cargo add tide-websockets\n```\n\n## Using with tide\n\nThis can either be used as a middleware or as an endpoint. If used as a middleware, the endpoint will be executed if the request is not a websocket upgrade. If used as an endpoint but the request is not a websocket request, tide will reply with a `426 Upgrade Required` status code.\n\nsee [the example](https://github.com/http-rs/tide-websockets/blob/main/examples/example.rs) for the most up-to-date example of usage\n\n## Safety\nThis crate uses ``#![deny(unsafe_code)]`` to ensure everything is implemented in\n100% Safe Rust.\n\n## Alternatives\n- [tide-websockets-sink](https://github.com/cryptoquick/tide-websockets-sink) - A fork of this project that implements the Sink trait.\n\n## License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr/\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this crate by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp-rs%2Ftide-websockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttp-rs%2Ftide-websockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp-rs%2Ftide-websockets/lists"}