Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

forever-agent

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 0.5.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16M
decreased by-8.65%
Maintainers
1
Weekly downloads
 
Created

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

FAQs

Package last updated on 04 Feb 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc