Skip to main content

method Socket.prototype.dropMembership

#Socket.prototype.dropMembership(
multicastAddress: string,
multicastInterface?: string,
): void

Instructs the kernel to leave a multicast group at multicastAddress using the IP_DROP_MEMBERSHIP socket option. This method is automatically called by the kernel when the socket is closed or the process terminates, so most apps will never have reason to call this.

If multicastInterface is not specified, the operating system will attempt to drop membership on all valid interfaces.

Parameters #

#multicastAddress: string
#multicastInterface: string
optional

Return Type #

void

你找到了你需要的东西吗?

隐私政策