0x03 -> chat in readme fix #195

This commit is contained in:
Romain Beaumont 2015-07-27 12:04:39 +02:00
parent 8dedf80292
commit d9edf571dd

View File

@ -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) });
});
```