Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x676e67 committed Sep 8, 2024
1 parent 111d928 commit 49b02d8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,15 @@
//! The `websocket` module provides a way to upgrade a connection to a websocket.
//!
//! ```rust,no_run
//! use std::error::Error;
//! use tungstenite::Message;
//!
//! use futures_util::{SinkExt, StreamExt, TryStreamExt};
//! use rquest::{impersonate::Impersonate, Client};
//! use rquest::{tls::Impersonate, Client, Message};
//! use std::error::Error;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn Error>> {
//! let websocket = Client::builder()
//! .impersonate(Impersonate::Chrome127)
//!
//! .http1_only()
//! .build()?
//! .get("wss://echo.websocket.org")
//! .upgrade()
Expand Down

0 comments on commit 49b02d8

Please sign in to comment.