diff options
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r-- | doc/api/stream.md | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md index 8c80816d79..8af12d12bf 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2407,14 +2407,12 @@ The workaround in this situation is to call the ```js // Workaround net.createServer((socket) => { - socket.on('end', () => { socket.end('The message was received but was not processed.\n'); }); // start the flow of data, discarding it. socket.resume(); - }).listen(1337); ``` |