client-stats.d.ts 456 B

123456789101112131415
  1. import Client from './client'
  2. export default ClientStats
  3. declare class ClientStats {
  4. constructor (pool: Client)
  5. /** If socket has open connection. */
  6. connected: boolean
  7. /** Number of open socket connections in this client that do not have an active request. */
  8. pending: number
  9. /** Number of currently active requests of this client. */
  10. running: number
  11. /** Number of active, pending, or queued requests of this client. */
  12. size: number
  13. }