omni.kit.widget.connection_manager#

Classes Summary:

ConnectionManager

Manages server connections across Nucleus, storage discovery, and HTTP. Provides ensure_connection for unified connectivity, add-server dialogs, and always-on auth handling.

ConnectionStatus

Status of a server connection.

DiscoveryServerState

State of a registered discovery server.

ManualServerState

State of a manually added server.

Functions Summary:

add_bookmark

Add a bookmark. No-op if the extension is not running.

disconnect

Disconnect from a server. No-op if the extension is not running.

ensure_connection

Ensure the server at *url* is reachable. Returns False if the extension is not running.

fallback_name_for_url

Derive a display name from a URL when the user doesn’t provide one.

get_bookmarks

Return all bookmarks as name -> url. Empty dict if the extension is not running.

get_instance

Return the singleton ConnectionManager instance, or None if the extension is not running.

reconnect

Reconnect to a Nucleus server asynchronously. No-op if the extension is not running.

remove_bookmark

Remove a bookmark by name. No-op if the extension is not running.

rename_bookmark

Rename a bookmark. No-op if the extension is not running.

show_add_discovery_server_dialog

Show a dialog to add a storage discovery server. No-op if the extension is not running.

show_add_http_server_dialog

Show a dialog to add an HTTP/HTTPS server. No-op if the extension is not running.

show_add_nucleus_server_dialog

Show a dialog to add a Nucleus server. No-op if the extension is not running.