Mon 21 Jul 22:43:21 CEST 2025
This commit is contained in:
		
							parent
							
								
									8616992676
								
							
						
					
					
						commit
						a5bfafd388
					
				
							
								
								
									
										17
									
								
								js/x11/core/examples/smoketest/query_ext.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								js/x11/core/examples/smoketest/query_ext.js
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | |||
| var x11 = require('../../lib'); | ||||
| var X = x11.createClient(); | ||||
| var numExt = 0; | ||||
| X.on('connect', function(err, display) { | ||||
|     X.ListExtensions(function(err, list) { | ||||
|         console.log(list); | ||||
|         list.forEach(function(ext) { | ||||
|             numExt++; | ||||
|             X.QueryExtension(ext, function(err, e) { | ||||
|                 e.name = ext; | ||||
|                 console.log(e); | ||||
|                 if (--numExt == 0) | ||||
|                     X.terminate(); | ||||
|             }); | ||||
|         }); | ||||
|     }); | ||||
| }); | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user