Socket
Socket
Sign inDemoInstall

forever-agent

Package Overview
Dependencies
0
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

forever-agent

HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.


Version published
Maintainers
3
Weekly downloads
16,606,177
increased by0.26%
Install size
14.6 kB

Weekly downloads

Package description

What is forever-agent?

The forever-agent npm package is an HTTP/HTTPS Agent that keeps connection alive between requests. It is used primarily to reuse TCP connections in Node.js HTTP networking, which can lead to improved performance in some scenarios.

What are forever-agent's main functionalities?

Connection Reuse

This feature allows the agent to keep the TCP connection open for future requests to the same host, which can reduce the latency associated with establishing new TCP connections for each request.

const http = require('http');
const ForeverAgent = require('forever-agent');
const agent = new ForeverAgent();

http.request({
  host: 'example.com',
  agent: agent
});

Other packages similar to forever-agent

Readme

Source

forever-agent

HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.

FAQs

Last updated on 07 Apr 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc