I am able to spawn a node process. I'm able to kill the process using the message listener. What I would like to do is respawn the node-pty process with a python process when a websocket sends a specific message from the UI. What is the best pattern to use when destroying a node-pty process and then respawning a new node-pty process?
Environment details
Issue description
I am able to spawn a
node
process. I'm able to kill the process using themessage
listener. What I would like to do is respawn thenode-pty
process with apython
process when a websocket sends a specific message from the UI. What is the best pattern to use when destroying anode-pty
process and then respawning a newnode-pty
process?