mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 02:22:55 +00:00 
			
		
		
		
	Explain subscription
This commit is contained in:
		@@ -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(
 | 
			
		||||
        '',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user