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

Commit b1de032

Browse files
authored
feat: add closeRead and closeWrite to stream timeline properties (#401)
1 parent 4c83268 commit b1de032

File tree

1 file changed

+22
-0
lines changed
  • packages/interface-connection/src

1 file changed

+22
-0
lines changed

packages/interface-connection/src/index.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,30 @@ export interface ConnectionStat {
4444
}
4545

4646
export interface StreamTimeline {
47+
/**
48+
* A timestamp of when the stream was opened
49+
*/
4750
open: number
51+
52+
/**
53+
* A timestamp of when the stream was closed for both reading and writing
54+
*/
4855
close?: number
56+
57+
/**
58+
* A timestamp of when the stream was closed for reading
59+
*/
60+
closeRead?: number
61+
62+
/**
63+
* A timestamp of when the stream was closed for writing
64+
*/
65+
closeWrite?: number
66+
67+
/**
68+
* A timestamp of when the stream was reset
69+
*/
70+
reset?: number
4971
}
5072

5173
export interface StreamStat {

0 commit comments

Comments
 (0)