Gio.DBusInterfaceSkeleton.prototype.get_connection

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

Gets the first connection that interface_ is exported on, if any.

Since 2.30

Returns

A Gio.DBusConnection or null if interface_ is not exported anywhere. Do not free, the object belongs to interface_.