mirror of
https://github.com/actix/actix-extras.git
synced 2025-07-16 01:54:46 +02:00
fix websocket example
This commit is contained in:
@@ -108,7 +108,7 @@ impl StreamHandler<Message, WsClientError> for ChatClient {
|
|||||||
println!("Connected");
|
println!("Connected");
|
||||||
}
|
}
|
||||||
|
|
||||||
fn finished(&mut self, err: Option<WsClientError>, ctx: &mut Context<Self>) {
|
fn finished(&mut self, ctx: &mut Context<Self>) {
|
||||||
println!("Server disconnected");
|
println!("Server disconnected");
|
||||||
ctx.stop()
|
ctx.stop()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user