We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 464636b commit 593206aCopy full SHA for 593206a
doc/api/net.markdown
@@ -578,7 +578,7 @@ Here is an example of a client of the previously described echo server:
578
579
```js
580
const net = require('net');
581
-const client = net.connect({port: 8124}, () => {
+const client = net.createConnection({port: 8124}, () => {
582
//'connect' listener
583
console.log('connected to server!');
584
client.write('world!\r\n');
0 commit comments