Gio.DBusMethodInvocation.prototype.get_message

function get_message(): Gio.DBusMessage {
    // Gjs wrapper for g_dbus_method_invocation_get_message()
}
  

Gets the Gio.DBusMessage for the method invocation. This is useful if you need to use low-level protocol features, such as UNIX file descriptor passing, that cannot be properly expressed in the GLib.Variant API.

See this [server][gdbus-server] and [client][gdbus-unix-fd-client] for an example of how to use this low-level API to send and receive UNIX file descriptors.

Since 2.26

Returns

Gio.DBusMessage. Do not free, it is owned by invocation.