Skip to content

ssl-client dont work #255

@ddkclaudio

Description

@ddkclaudio

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, _)| {
    |          ^^^^^^^^
    | 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions