Browse Source

Update example on index.html

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
7811fa6fec
  1. 4
      doc/index.html

4
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();
});

Loading…
Cancel
Save