diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-02-17 17:07:08 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-02-17 17:07:08 -0800 |
commit | 7811fa6fec8e5b24620002b8f637e461176a7c6f (patch) | |
tree | 20f00a293806f0c6f23bb9b3757259bc12a84fde /doc/index.html | |
parent | 7c1c89fc29ccb1a27fb132e9299b5bb240b51df5 (diff) | |
download | node-new-7811fa6fec8e5b24620002b8f637e461176a7c6f.tar.gz |
Update example on index.html
Diffstat (limited to 'doc/index.html')
-rw-r--r-- | doc/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/index.html b/doc/index.html index 22ac939f3a..ba94ffac67 100644 --- a/doc/index.html +++ b/doc/index.html @@ -76,10 +76,10 @@ var server = tcp.createServer(function (socket) { socket.addListener("connect", function () { socket.write("hello\r\n"); }); - socket.addListener("receive", function (data) { + socket.addListener("data", function (data) { socket.write(data); }); - socket.addListener("eof", function () { + socket.addListener("end", function () { socket.write("goodbye\r\n"); socket.close(); }); |