1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

update example

This commit is contained in:
Nikolay Kim
2018-02-09 22:46:34 -08:00
parent 0c98775b51
commit 2d049e4a9f
3 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ impl Handler<ws::Message> for Ws {
fn handle(&mut self, msg: ws::Message, ctx: &mut Self::Context) {
match msg {
ws::Message::Ping(msg) => ctx.pong(&msg),
ws::Message::Text(text) => ctx.text(&text),
ws::Message::Text(text) => ctx.text(text),
ws::Message::Binary(bin) => ctx.binary(bin),
_ => (),
}