Skip to content

Application and Command execution

Avdpro Pang edited this page Jan 27, 2022 · 1 revision

Applications

  • To max-utilize browser power, CokeCodes applications run in dedicated tab/ window.
  • Applications should be published as packages use disk-install-mode.

Commands

CokeCodes commands are executed in iFrame inside the application window that called the command.
Why in iFrame not Worker?

  • When sync access disks, file system need read the disk contents into memory. iFrame can direct access the parent window(iframe)'s memory disk data while workers can not.
  • iFrame provides more APIs than worker.
  • Use worker may get better performance, maybe we can config the command JSON file to mark commands that should run in worker.

Clone this wiki locally