projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c1c89f
)
Update example on index.html
author
Ryan Dahl
<ry@tinyclouds.org>
Thu, 18 Feb 2010 01:07:08 +0000
(17:07 -0800)
committer
Ryan Dahl
<ry@tinyclouds.org>
Thu, 18 Feb 2010 01:07:08 +0000
(17:07 -0800)
doc/index.html
patch
|
blob
|
history
diff --git
a/doc/index.html
b/doc/index.html
index
22ac939
..
ba94ffa
100644
(file)
--- 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("e
of
", function () {
+ socket.addListener("e
nd
", function () {
socket.write("goodbye\r\n");
socket.close();
});