From d9edf571dd2e762a53c17692571ca19d4f517bb5 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Mon, 27 Jul 2015 12:04:39 +0200 Subject: [PATCH] 0x03 -> chat in readme fix #195 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f7a17b5..6fb2b51 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ client.on('chat', function(packet) { var username = jsonMsg.using[0]; var msg = jsonMsg.using[1]; if (username === client.username) return; - client.write(0x03, { + client.write("chat", { message: msg }); } @@ -95,7 +95,7 @@ server.on('login', function(client) { 'Server', 'Hello, ' + client.username ]}; - client.write(0x03, { message: JSON.stringify(msg) }); + client.write("chat", { message: JSON.stringify(msg) }); }); ```