1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-18 15:41:17 +00:00

fix websocket example

This commit is contained in:
Nikolay Kim 2018-01-31 13:18:30 -08:00
parent 58f85658bd
commit 2b74fbf586

View file

@ -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()
}