Gio.DBusConnection.prototype.get_last_serial
function get_last_serial(): Number(guint32) { // Gjs wrapper for g_dbus_connection_get_last_serial() }
Retrieves the last serial number assigned to a Gio.DBusMessage on the current thread. This includes messages sent via both low-level API such as Gio.DBusConnection.prototype.send_message as well as high-level API such as Gio.DBusConnection.prototype.emit_signal, Gio.DBusConnection.prototype.call or Gio.DBusProxy.prototype.call.
Since 2.34
- Returns
the last used serial or zero when no message has been sent within the current thread