Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
use stream.opened instead of stream.connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadwork committed Nov 5, 2023
1 parent 79dad1b commit 9aedc24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion commands/services/tail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ export const servicesTailCommand =
let writer: WritableStreamDefaultWriter<string | Uint8Array>;

try {
conn = await stream.connection;
if(stream.connection) {
conn = await stream.connection;
} else {
conn = await stream.opened;
}
reader = await conn.readable.getReader();
writer = await conn.writable.getWriter();
} catch (err) {
Expand Down

0 comments on commit 9aedc24

Please sign in to comment.