From 8c19d3b210eec1b40d770ce8eb41b7834ebcd14e Mon Sep 17 00:00:00 2001 From: "ali.ibrahim" Date: Thu, 20 Oct 2016 13:57:08 +0200 Subject: [PATCH] Documenting net module: various fixes. --- docs/api/net.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/api/net.md b/docs/api/net.md index d99d9d562f54..4cf7079adf25 100644 --- a/docs/api/net.md +++ b/docs/api/net.md @@ -4,7 +4,7 @@ The `net` module is a client-side API for issuing HTTP(S) requests. It is similar to the [HTTP](https://nodejs.org/api/http.html) and -[HTTPS](https://nodejs.org/api/https.html) modules of Node.js but it uses +[HTTPS](https://nodejs.org/api/https.html) modules of Node.js but uses Chromium native networking library instead of the Node.js implementation offering therefore a much greater support regarding web proxies. @@ -18,7 +18,7 @@ negotiate authentication schemes. * Support for traffic monitoring proxies: Fiddler-like proxies used for access control and monitoring. -The `net` module API has been specifically designed to mimic, as much closely as +The `net` module API has been specifically designed to mimic, as closely as possible, the familiar Node.js API. The API components including classes, methods, properties and event names are similar to those commonly used in Node.js. @@ -49,6 +49,9 @@ By the way, it is almost identical to how you would normally use the [HTTP](https://nodejs.org/api/http.html)/[HTTPS](https://nodejs.org/api/https.html) modules of Node.js +The `net` API can be used only after the application emits the `ready` event. +Trying to use the module before the `ready` event will throw an error. + ## Methods The `net` module has the following methods: