mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 00:21:08 +01:00
fix websocket example
This commit is contained in:
parent
58f85658bd
commit
2b74fbf586
@ -108,7 +108,7 @@ impl StreamHandler<Message, WsClientError> for ChatClient {
|
||||
println!("Connected");
|
||||
}
|
||||
|
||||
fn finished(&mut self, err: Option<WsClientError>, ctx: &mut Context<Self>) {
|
||||
fn finished(&mut self, ctx: &mut Context<Self>) {
|
||||
println!("Server disconnected");
|
||||
ctx.stop()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user