-
Notifications
You must be signed in to change notification settings - Fork 226
Open
Description
Example for websocket using SSL does not work, can someone help me?
Cargo.toml
[dependencies]
websocket = "0.26.2"
futures = "0.3.5"
tokio = "0.2.22"
Erro
error[E0432]: unresolved import `futures::sync`
--> src/main.rs:8:14
|
8 | use futures::sync::mpsc;
| ^^^^ help: a similar path exists: `websocket::futures::sync`
error[E0433]: failed to resolve: could not find `current_thread` in `runtime`
--> src/main.rs:18:55
|
18 | let mut runtime = tokio::runtime::current_thread::Builder::new()
| ^^^^^^^ not found in `tokio::runtime::current_thread`
error: the `and_then` method cannot be invoked on a trait object
--> src/main.rs:52:10
|
52 | .and_then(|(duplex, _)| {
| ^^^^^^^^
|
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels