Module tokio_websockets::client

source ·
Available on crate feature client only.
Expand description

Implementation of a WebSocket client.

This can be used in three ways:

  • By letting the library connect to a remote URI and performing a HTTP/1.1 Upgrade handshake, via Builder::connect
  • By letting the library perform a HTTP/1.1 Upgrade handshake on an established stream, via Builder::connect_on
  • By performing the handshake yourself and then using Builder::take_over to let it take over a WebSocket stream

Structs§

  • Builder for WebSocket client connections.