method Worker.prototype.emitWorker.prototype.emit(event: string | symbol,...args: any[],): booleanDeprecatedParametersevent: string | symbol<span>...args</span>: any[]Return TypebooleanWorker.prototype.emit(event: "disconnect"): booleanDeprecatedParametersevent: "disconnect"Return TypebooleanWorker.prototype.emit(event: "error",error: Error,): booleanDeprecatedParametersevent: "error"error: ErrorReturn TypebooleanWorker.prototype.emit(event: "exit",code: number,signal: string,): booleanDeprecatedParametersevent: "exit"code: numbersignal: stringReturn TypebooleanWorker.prototype.emit(event: "listening",address: Address,): booleanDeprecatedParametersevent: "listening"address: AddressReturn TypebooleanWorker.prototype.emit(event: "message",message: any,handle: net.Socket | net.Server,): booleanDeprecatedParametersevent: "message"message: anyhandle: net.Socket | net.ServerReturn TypebooleanWorker.prototype.emit(event: "online"): booleanDeprecatedParametersevent: "online"Return Typeboolean