update document to enable ws & rustls / openssl if user wants to use websockets (#1197)

This commit is contained in:
Astronaut Sleuth 2022-05-03 03:33:55 +08:00 committed by GitHub
parent 4d24acdd84
commit fcc2151b1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ println!("Got code: {}", serde_json::to_string(&code)?);
# Websockets
The crate has support for WebSockets via Tokio.
The crate has support for WebSockets via Tokio. Please ensure that you have the "ws" and "rustls" / "openssl" features enabled if you wish to use WebSockets.
```
# async fn foo() -> Result<(), Box<dyn std::error::Error>> {