Update README.md

Fixed README.md - socket.send(data) should be socket.write(data)
This commit is contained in:
Martin Obrátil 2014-12-17 21:52:50 +01:00
parent 72f1e724cb
commit 88bc09fb83

View File

@ -54,7 +54,7 @@ var data = new Uint8Array(dataString.length);
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
data[i] = dataString.charCodeAt(i); data[i] = dataString.charCodeAt(i);
} }
socket.send(data); socket.write(data);
``` ```
Close the connection gracefully by sending FIN to server: Close the connection gracefully by sending FIN to server: