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

feat: add closeRead and closeWrite to stream timeline properties #401

Merged
merged 2 commits into from
May 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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