summaryrefslogtreecommitdiff
path: root/doc/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/index.html')
-rw-r--r--doc/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/index.html b/doc/index.html
index afbabfc0f1..04945cab1e 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -74,13 +74,13 @@ var tcp = require('tcp');
var server = tcp.createServer(function (socket) {
socket.setEncoding("utf8");
socket.addListener("connect", function () {
- socket.send("hello\r\n");
+ socket.write("hello\r\n");
});
socket.addListener("receive", function (data) {
- socket.send(data);
+ socket.write(data);
});
socket.addListener("eof", function () {
- socket.send("goodbye\r\n");
+ socket.write("goodbye\r\n");
socket.close();
});
});