diff options
-rw-r--r-- | packages/bun-types/bun.d.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts index 1b5ec60ba..1df382a0a 100644 --- a/packages/bun-types/bun.d.ts +++ b/packages/bun-types/bun.d.ts @@ -2753,6 +2753,12 @@ declare module "bun" { drain?(socket: Socket<Data>): void | Promise<void>; /** + * When the socket has been shutdown from the other end, this function is + * called. This is a TCP FIN packet. + */ + end?(socket: Socket<Data>): void | Promise<void>; + + /** * When the socket fails to be created, this function is called. * * The promise returned by `Bun.connect` rejects **after** this function is |