Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
feat: add closeRead and closeWrite to stream timeline properties (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored May 16, 2023
1 parent 4c83268 commit b1de032
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/interface-connection/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,30 @@ export interface ConnectionStat {
}

export interface StreamTimeline {
/**
* A timestamp of when the stream was opened
*/
open: number

/**
* A timestamp of when the stream was closed for both reading and writing
*/
close?: number

/**
* A timestamp of when the stream was closed for reading
*/
closeRead?: number

/**
* A timestamp of when the stream was closed for writing
*/
closeWrite?: number

/**
* A timestamp of when the stream was reset
*/
reset?: number
}

export interface StreamStat {
Expand Down

0 comments on commit b1de032

Please sign in to comment.