Gio.DBusObjectManagerServer.prototype.get_connection

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

Gets the Gio.DBusConnection used by manager.

Since 2.30

Returns

A Gio.DBusConnection object or null if manager isn't exported on a connection. The returned object should be freed with GObject.Object.prototype.unref.