denoland / fastwebsockets

A fast RFC6455 WebSocket implementation
https://docs.rs/fastwebsockets/
Apache License 2.0
845 stars 61 forks source link

What about the latest version of handshake? #58

Closed 86maid closed 9 months ago

86maid commented 9 months ago

I can't find fastwebsockets: in the new version: handshake: : generate_key ()

littledivy commented 9 months ago

Are you enabling with the upgrade feature?

fastwebsockets = { version = "0.5", features = ["upgrade"] }
86maid commented 9 months ago

Can't he connect directly to wss:// ???????

86maid commented 9 months ago

Can only use upgrade, but not connect directly? I am trying to create a websocket client to connect to a websocket server.

bartlomieju commented 9 months ago

Here's a full example connecting over TLS https://github.com/denoland/fastwebsockets/blob/main/examples/tls_client.rs

86maid commented 9 months ago

Why not provide the connect function? It's really too cumbersome

xchuang233 @.***

---Original--- From: "Bartek @.> Date: Fri, Dec 15, 2023 22:08 PM To: @.>; Cc: @.**@.>; Subject: Re: [denoland/fastwebsockets] What about the latest version ofhandshake? (Issue #58)

Here's a full example connecting over TLS https://github.com/denoland/fastwebsockets/blob/main/examples/tls_client.rs

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>