runtime.createWorker() function cannot be used

0 favourites
  • 2 posts
From the Asset Store
Antisuspend Plugin for Construct 3 prevents the runtime from getting suspended.
  • When publishing to the Construct Arcade platform, the runtime.createWorker() function cannot be used. Is anyone else experiencing the same issue? Please help me with a solution.

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Some additional information:

    I am using the following in the program:

    await runtime.createWorker("./request_worker.js");
    

    Exporting the Construct Arcade platform. doesn’t work.

    After unzipping the file and testing locally, I found during debugging that "request_worker.js" is missing.

    By copying "request_worker.js" to the root directory, it runs perfectly.

    When debugging the Construct Arcade webpage, I found that the directory is "/72797/0/scripts/project/request_worker.js".

    I changed the link to "https://construct-arcade.com/72797/0/scripts/project/request_worker.js"(The link test can be accessed normally).

    await runtime.createWorker("https://construct-arcade.com/72797/0/scripts/project/request_worker.js");
    

    Export and upload, still doesn’t work.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)