mirror of
https://github.com/actix/actix-web.git
synced 2024-12-19 06:36:36 +00:00
update websocket example
This commit is contained in:
parent
9835a4537a
commit
f3cce6a04c
1 changed files with 2 additions and 2 deletions
|
@ -105,11 +105,11 @@ impl StreamHandler<Message, WsClientError> for ChatClient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn started(&mut self, ctx: &mut Context<Self>, _: SpawnHandle) {
|
fn started(&mut self, ctx: &mut Context<Self>) {
|
||||||
println!("Connected");
|
println!("Connected");
|
||||||
}
|
}
|
||||||
|
|
||||||
fn finished(&mut self, err: Option<WsClientError>, ctx: &mut Context<Self>, _: SpawnHandle) {
|
fn finished(&mut self, err: Option<WsClientError>, ctx: &mut Context<Self>) {
|
||||||
println!("Server disconnected");
|
println!("Server disconnected");
|
||||||
ctx.stop()
|
ctx.stop()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue