Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port/rename to async-std / async-tungstenite
- Loading branch information
Showing
16 changed files
with
167 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
# tokio-tungstenite | ||
# async-tungstenite | ||
|
||
Asynchronous WebSockets for Tokio stack. | ||
Asynchronous WebSockets for [async-std](https://async.rs) and `std` `Future`s. | ||
|
||
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) | ||
[![Crates.io](https://img.shields.io/crates/v/tokio-tungstenite.svg?maxAge=2592000)](https://crates.io/crates/tokio-tungstenite) | ||
[![Build Status](https://travis-ci.org/snapview/tokio-tungstenite.svg?branch=master)](https://travis-ci.org/snapview/tokio-tungstenite) | ||
[![Crates.io](https://img.shields.io/crates/v/async-tungstenite.svg?maxAge=2592000)](https://crates.io/crates/async-tungstenite) | ||
[![Build Status](https://travis-ci.org/sdroege/async-tungstenite.svg?branch=master)](https://travis-ci.org/sdroege/async-tungstenite) | ||
|
||
[Documentation](https://docs.rs/tokio-tungstenite) | ||
[Documentation](https://docs.rs/async-tungstenite) | ||
|
||
## Usage | ||
|
||
Add this in your `Cargo.toml`: | ||
|
||
```toml | ||
[dependencies] | ||
tokio-tungstenite = "*" | ||
async-tungstenite = "*" | ||
``` | ||
|
||
Take a look at the `examples/` directory for client and server examples. You may also want to get familiar with | ||
[tokio](https://tokio.rs/) if you don't have any experience with it. | ||
[`async-std`](https://async.rs/) if you don't have any experience with it. | ||
|
||
## What is tokio-tungstenite? | ||
## What is async-tungstenite? | ||
|
||
This crate is based on `tungstenite-rs` Rust WebSocket library and provides `tokio` bindings and wrappers for it, so you | ||
can use it with non-blocking/asynchronous `TcpStream`s from and couple it together with other crates from `tokio` stack. | ||
This crate is based on `tungstenite-rs` Rust WebSocket library and provides async-std bindings and wrappers for it, so you | ||
can use it with non-blocking/asynchronous `TcpStream`s from and couple it together with other crates from the async-std stack. | ||
|
||
## tokio-tungstenite | ||
|
||
Originally this crate was created as a fork of [tokio-tungstenite](https://github.com/snapview/tokio-tungstenite) | ||
and ported to [async-std](https://async.rs). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.