mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 18:37:41 +02:00
use newer api
This commit is contained in:
@ -200,7 +200,7 @@ impl WsClient {
|
||||
|
||||
// get connection and start handshake
|
||||
Ok(Box::new(
|
||||
self.conn.call(Connect(request.uri().clone()))
|
||||
self.conn.send(Connect(request.uri().clone()))
|
||||
.map_err(|_| WsClientError::Disconnected)
|
||||
.and_then(|res| match res {
|
||||
Ok(stream) => Either::A(WsHandshake::new(stream, request)),
|
||||
|
Reference in New Issue
Block a user