mirror of
https://github.com/Cian-H/I-Form_Server_Node_Deployer.git
synced 2025-12-23 06:32:08 +00:00
Fully working end-to-end locally with validation
This commit is contained in:
11
client_stdout.py
Normal file
11
client_stdout.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import asyncio
|
||||
import sys
|
||||
|
||||
|
||||
async def stdout_pipe(client):
|
||||
events = client.events(decode=True)
|
||||
while True:
|
||||
for event in events:
|
||||
sys.stdout.write(event)
|
||||
sys.stdout.flush()
|
||||
await asyncio.sleep(0.1)
|
||||
Reference in New Issue
Block a user