You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I attach to a container to consume "StdIn" and "StdOut".
ct.attach({stream: true,stdout: true,stderr: true},async(err,streams)=>{if(err)returnres.status(500).send('Error on Attach');uStream.ended=false;ct.modem.demuxStream(streams,uStream.cs.out,uStream.cs.err);setTimeout(()=>{uStream.ended=true;(streamsasany).destroy();console.log('Log Stream Ended')},10000);
Everything works fine with the Stream object.
In the code i want to close the stream (aka "deAttach") but the object doest not have a function "end" (according to the type, end should be available) ???
"destroy" as a function seems to work (i have to "workarround" typescript, cause destory is not typed)
So my question is: Is there a correct way to "deattach" a stream ?
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Open a new issue if needed.
Hi,
first thanx for this nice peace of software.
Right now i have a strange problem.
I attach to a container to consume "StdIn" and "StdOut".
Everything works fine with the Stream object.
In the code i want to close the stream (aka "deAttach") but the object doest not have a function "end" (according to the type, end should be available) ???
"destroy" as a function seems to work (i have to "workarround" typescript, cause destory is not typed)
So my question is: Is there a correct way to "deattach" a stream ?
The text was updated successfully, but these errors were encountered: