diff options
-rw-r--r-- | packages/bun-types/bun.d.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts index 4098cca4d..252e50055 100644 --- a/packages/bun-types/bun.d.ts +++ b/packages/bun-types/bun.d.ts @@ -2391,6 +2391,11 @@ declare module "bun" { unref(): void; /** + * Flush any buffered data to the socket + */ + flush(): void; + + /** * Reset the socket's callbacks. This is useful with `bun --hot` to facilitate hot reloading. * * This will apply to all sockets from the same {@link Listener}. it is per socket only for {@link Bun.connect}. |