From 9aedc24000859d60d9cbf03470f2b28884cb4c50 Mon Sep 17 00:00:00 2001 From: Tzvi Friedman Date: Sat, 4 Nov 2023 23:43:09 -0400 Subject: [PATCH] use stream.opened instead of stream.connection --- commands/services/tail.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/services/tail.ts b/commands/services/tail.ts index 28b38b2..58f368e 100644 --- a/commands/services/tail.ts +++ b/commands/services/tail.ts @@ -59,7 +59,11 @@ export const servicesTailCommand = let writer: WritableStreamDefaultWriter; 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) {