diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-02-16 13:15:30 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-02-16 13:18:42 -0800 |
commit | 23cf502db779e57483410092a991a774b30edc66 (patch) | |
tree | e7858a511380f7e538b76c90b2a6c09c69f8d66b /doc/index.html | |
parent | 1bf46d1536f6401bffba88cb4a8c8a10cb9f358c (diff) | |
download | node-new-23cf502db779e57483410092a991a774b30edc66.tar.gz |
API: connection.send() renamed to connection.write()
Diffstat (limited to 'doc/index.html')
-rw-r--r-- | doc/index.html | 6 |
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(); }); }); |