MessagePort.close - Web documentation
method MessagePort.close
MessagePort.close(): void

Disconnects the port, so that it is no longer active.

Return Type

void