Browse Source

doc: fix net.createConnection() example

PR-URL: https://github.com/nodejs/node/pull/5219
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
v5.x
Brian White 9 years ago
committed by Rod Vagg
parent
commit
35d89d4662
  1. 2
      doc/api/net.markdown

2
doc/api/net.markdown

@ -583,7 +583,7 @@ Here is an example of a client of the previously described echo server:
```js
const net = require('net');
const client = net.connect({port: 8124}, () => {
const client = net.createConnection({port: 8124}, () => {
//'connect' listener
console.log('connected to server!');
client.write('world!\r\n');

Loading…
Cancel
Save