Gio.SrvTarget.prototype.get_priority

function get_priority(): Number(guint16) {
    // Gjs wrapper for g_srv_target_get_priority()
}
  

Gets target's priority. You should not need to look at this; Gio.Resolver already sorts the targets according to the algorithm in RFC 2782.

Since 2.22

Returns

target's priority