--- a/gameServer2/src/server/handlers/mod.rs Thu Jun 21 23:09:20 2018 +0200
+++ b/gameServer2/src/server/handlers/mod.rs Thu Jun 21 17:23:10 2018 -0400
@@ -15,7 +15,7 @@
pub fn handle(server: &mut HWServer, token: usize, message: HWProtocolMessage) {
match message {
HWProtocolMessage::Ping =>
- server.react(token, vec![SendMe(Pong)]),
+ server.react(token, vec![Pong.send_self().action()]),
HWProtocolMessage::Quit(Some(msg)) =>
server.react(token, vec![ByeClient("User quit: ".to_string() + &msg)]),
HWProtocolMessage::Quit(None) =>