1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-31 11:02:08 +01: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()
}