From 88bc09fb8354e0121394d6c58d90ddaa8d029022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Obr=C3=A1til?= Date: Wed, 17 Dec 2014 21:52:50 +0100 Subject: [PATCH] Update README.md Fixed README.md - socket.send(data) should be socket.write(data) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 05f3d85..d99f8bb 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ var data = new Uint8Array(dataString.length); for (var i = 0; i < data.length; i++) { data[i] = dataString.charCodeAt(i); } -socket.send(data); +socket.write(data); ``` Close the connection gracefully by sending FIN to server: