From 2e787617acb39cf2fbbbf8aef20bbc99cabb53b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=9B=9B?= Date: Sat, 18 Apr 2015 23:25:10 +0800 Subject: [PATCH] docs: add getCurrentStatus --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index cfbffff..7a2709f 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,21 @@ setTimeout(function () { ``` +### `agent.getCurrentStatus()` + +`agent.getCurrentStatus()` will return a object to show the status of this agent: + +```js +{ + createSocketCount: 10, + closeSocketCount: 5, + requestCount: 5, + freeSockets: { 'localhost:57479::': 3 }, + sockets: { 'localhost:57479::': 5 }, + requests: {} +} +``` + ### Support `https` ```js