Gio.Socket.prototype.leave_multicast_group

function leave_multicast_group(group: Gio.InetAddress, source_specific: Boolean, iface: String): Boolean {
    // Gjs wrapper for g_socket_leave_multicast_group()
}
  

Removes socket from the multicast group defined by group, iface, and source_specific (which must all have the same values they had when you joined the group).

socket remains bound to its address and port, and can still receive unicast messages after calling this.

Since 2.32

group

a Gio.InetAddress specifying the group address to leave.

source_specific

true if source-specific multicast was used

iface

Interface used

Returns

true on success, false on error.