From a82a0d68cf858c666d589c212c8deff6b3744872 Mon Sep 17 00:00:00 2001 From: "R. Richard" Date: Tue, 14 May 2019 08:47:29 +0200 Subject: [PATCH] Explain subscription --- solvable/src/pipe_io_main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/solvable/src/pipe_io_main.py b/solvable/src/pipe_io_main.py index 31e3271..bef89a9 100644 --- a/solvable/src/pipe_io_main.py +++ b/solvable/src/pipe_io_main.py @@ -15,7 +15,14 @@ from pipe_io_auxlib import ( if __name__ == '__main__': ''' Creates general purpose pipes. - You can send/receive JSON messages to/from the TFW server as any user. + The first parameter associates the receiving pipe with a key, which is + an empty string in this case. It has a special meaning, you can + subscribe to every kind of message with this key. + If you wish to filter incoming data, specify a single or more keys in + a list, eg.: processmanager, ide, key... + You can send/receive JSON messages to/from the TFW server as any user, + because we gave read+write permissions, without that parameter, only + the owner has access to the pipes. ''' json_pipe = PipeIOEventHandler( '',