1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-19 20:35:36 +02:00

Improve awc websocket docs (#1654)

Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
Igor Aleksanov
2020-09-07 14:04:54 +03:00
committed by GitHub
parent 9a9d4b182e
commit c54d73e0bb
2 changed files with 29 additions and 1 deletions

View File

@@ -193,7 +193,8 @@ impl Client {
self.request(Method::OPTIONS, url)
}
/// Construct WebSockets request.
/// Initialize a WebSocket connection.
/// Returns a WebSocket connection builder.
pub fn ws<U>(&self, url: U) -> ws::WebsocketsRequest
where
Uri: TryFrom<U>,