1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-18 22:26:37 +00:00

update websocket example

This commit is contained in:
Nikolay Kim 2018-01-28 09:07:12 -08:00
parent 9835a4537a
commit f3cce6a04c

View file

@ -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");
}
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");
ctx.stop()
}