Fix the typong tests not working properly

This commit is contained in:
Yann Flory
2016-04-14 12:24:17 +02:00
parent feaae609ad
commit 6884b0890a
3 changed files with 41 additions and 13 deletions

View File

@@ -133,7 +133,7 @@ const onMessage = (ctx, evt) => {
return;
}
if (msg[2] === 'PING') {
msg[1] = 'PONG';
msg[2] = 'PONG';
ctx.ws.send(JSON.stringify(msg));
return;
}