Gio.DBusObjectProxy.prototype.get_connection

function get_connection(): Gio.DBusConnection {
    // Gjs wrapper for g_dbus_object_proxy_get_connection()
}
  

Gets the connection that proxy is for.

Since 2.30

Returns

A Gio.DBusConnection. Do not free, the object is owned by proxy.