From 0d3e0bbb716819eb721bc57a08d673205fbed988 Mon Sep 17 00:00:00 2001 From: Tino Hager Date: Mon, 13 Jun 2016 22:03:34 +0200 Subject: [PATCH] Documentation Change - Memory leak (#1358) Fixes #1303 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5094f69e..36e270f2 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,11 @@ The NodeMCU programming model is similar to that of [Node.js](https://en.wikiped -- a simple HTTP server srv = net.createServer(net.TCP) srv:listen(80, function(conn) - conn:on("receive", function(conn, payload) + conn:on("receive", function(sck, payload) print(payload) - conn:send("

Hello, NodeMCU.

") + sck:send("

Hello, NodeMCU.

") end) - conn:on("sent", function(conn) conn:close() end) + conn:on("sent", function(sck) sck:close() end) end) ``` ```lua