Ramesh-vani commited on
Commit
6bd639a
·
verified ·
1 Parent(s): 9987d63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -293,6 +293,11 @@ async def read_process_output(process, websocket):
293
  if char == b'\n':
294
  if word:
295
  print(word.decode())
 
 
 
 
 
296
  word = b''
297
  print("line is completed")
298
  event = {
@@ -332,6 +337,11 @@ async def read_process_output(process, websocket):
332
  if char == b'\n':
333
  if word:
334
  print(word.decode())
 
 
 
 
 
335
  word = b''
336
  print("line is completed")
337
  event = {
 
293
  if char == b'\n':
294
  if word:
295
  print(word.decode())
296
+ event = {
297
+ "type": "terminal-data",
298
+ "data": "",
299
+ }
300
+ await websocket.send(json.dumps(event))
301
  word = b''
302
  print("line is completed")
303
  event = {
 
337
  if char == b'\n':
338
  if word:
339
  print(word.decode())
340
+ event = {
341
+ "type": "terminal-data",
342
+ "data": "",
343
+ }
344
+ await websocket.send(json.dumps(event))
345
  word = b''
346
  print("line is completed")
347
  event = {