Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns Agent

Properties

freeSockets

freeSockets: ReadOnlyDict<Socket[]>

maxFreeSockets

maxFreeSockets: number

maxSockets

maxSockets: number

maxTotalSockets

maxTotalSockets: number

requests

sockets

sockets: ReadOnlyDict<Socket[]>

Methods

destroy

  • destroy(): void
  • Destroy any sockets that are currently in use by the agent. It is usually not necessary to do this. However, if you are using an agent with KeepAlive enabled, then it is best to explicitly shut down the agent when you know that it will no longer be used. Otherwise, sockets may hang open for quite a long time before the server terminates them.

    Returns void

Generated using TypeDoc