summaryrefslogtreecommitdiff
path: root/doc/index.html
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-02-17 17:07:08 -0800
committerRyan Dahl <ry@tinyclouds.org>2010-02-17 17:07:08 -0800
commit7811fa6fec8e5b24620002b8f637e461176a7c6f (patch)
tree20f00a293806f0c6f23bb9b3757259bc12a84fde /doc/index.html
parent7c1c89fc29ccb1a27fb132e9299b5bb240b51df5 (diff)
downloadnode-new-7811fa6fec8e5b24620002b8f637e461176a7c6f.tar.gz
Update example on index.html
Diffstat (limited to 'doc/index.html')
-rw-r--r--doc/index.html4
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();
});