method MessagePort.prototype.emitMessagePort.prototype.emit(event: "close"): booleanDeprecatedParametersevent: "close"Return TypebooleanMessagePort.prototype.emit(event: "message",value: any,): booleanDeprecatedParametersevent: "message"value: anyReturn TypebooleanMessagePort.prototype.emit(event: "messageerror",error: Error,): booleanDeprecatedParametersevent: "messageerror"error: ErrorReturn TypebooleanMessagePort.prototype.emit(event: string | symbol,...args: any[],): booleanDeprecatedParametersevent: string | symbol<span>...args</span>: any[]Return Typeboolean