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:
parent
9835a4537a
commit
f3cce6a04c
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user