Update README.md
Fixed README.md - socket.send(data) should be socket.write(data)
This commit is contained in:
parent
72f1e724cb
commit
88bc09fb83
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user