connection_util
Utility for knowing when it's okay to open the browser.
defer_site_launch_when_available(url_to_wait_for, url_to_launch)
Waits for an URL to become available, then launches the browser.
Source code in client/ayon_comfyui/api/connection_util.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |
get_site_headers(url) async
Return headers associated with a site.
Source code in client/ayon_comfyui/api/connection_util.py
75 76 77 78 | |
poll_site_availability_timeout(url, timeout=5)
Get whether a site is available.
Sync version of wait_for_site_availability_timeout
Returns:
| Type | Description |
|---|---|
bool | True/False whether was able to connect. |
Source code in client/ayon_comfyui/api/connection_util.py
60 61 62 63 64 65 66 67 68 69 70 71 72 | |
poll_site_headers(url)
Return headers associated with a site.
Sync version of get_site_headers
Source code in client/ayon_comfyui/api/connection_util.py
81 82 83 84 85 86 87 88 | |
wait_for_site_availability(url) async
Asynchronously wait for a website to open.
Source code in client/ayon_comfyui/api/connection_util.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
wait_for_site_availability_timeout(url, timeout=5) async
Asynchronously wait for a website to open. with timeout.
Source code in client/ayon_comfyui/api/connection_util.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |