Added PIPE like functionality to recieve/update active target buffer
This commit is contained in:
@@ -105,6 +105,20 @@ class IPCServer(Singleton):
|
||||
conn.close()
|
||||
break
|
||||
|
||||
if "OPIPE" in msg:
|
||||
data = event_system.emit_and_await("get-current-buffer-pipe")
|
||||
conn.send(data)
|
||||
conn.close()
|
||||
|
||||
break
|
||||
|
||||
if "IPIPE|" in msg:
|
||||
data = msg.split("IPIPE|")[1].strip()
|
||||
event_system.emit("update-current-buffer-pipe", data)
|
||||
conn.close()
|
||||
|
||||
break
|
||||
|
||||
|
||||
if msg in ['close connection', 'close server', 'Empty Data...']:
|
||||
conn.close()
|
||||
|
||||
Reference in New Issue
Block a user