4 releases (breaking)

0.4.0 May 23, 2021
0.3.0 Mar 5, 2021
0.2.0 Feb 4, 2021
0.1.0 Dec 4, 2020

#14 in #tide

Download history 717/week @ 2021-07-04 733/week @ 2021-07-11 747/week @ 2021-07-18 690/week @ 2021-07-25 756/week @ 2021-08-01 446/week @ 2021-08-08 387/week @ 2021-08-15 357/week @ 2021-08-22 307/week @ 2021-08-29 293/week @ 2021-09-05 403/week @ 2021-09-12 368/week @ 2021-09-19 442/week @ 2021-09-26 334/week @ 2021-10-03 443/week @ 2021-10-10 679/week @ 2021-10-17

1,791 downloads per month
Used in 6 crates (4 directly)

MIT/Apache

21KB
181 lines

tide-websockets

experimental websockets handler for tide based on async-tungstenite

Installation

$ cargo add tide-websockets

Using with tide

This 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.

see the example for the most up-to-date example of usage

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

Alternatives

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~8–11MB
~226K SLoC