NodeJs-Unreal icon indicating copy to clipboard operation
NodeJs-Unreal copied to clipboard

Refactor to CLISystem

Open getnamo opened this issue 1 year ago • 2 comments

Purpose

To simplify, improve performance, and improve the connection and reliability of the embedded nodejs.

Tasklist

  • [x] Branch
  • [x] Add CLISystem plugin
  • [x] Remove old commandline module
  • [x] Clean and remove old methods from nodejs component
  • [x] Scaffold new bridge from CLIProcessComponent subclass
  • [x] run a 'hello world' process.js script
  • [x] Scaffold CLI input handling script
  • [x] Binary path test
  • [x] run desired target script within main script (likely faster for most use cases)
  • [x] optional approach (same as before): spawn an child process with target script
  • [x] file-watching and hot reload support
  • [x] re-link begin/end/reload etc callbacks
  • [x] route logs to correct callbacks
  • [ ] updated event-emitter serialization structure supporting json objects with binary interweave with c++ support (candidates: socket.io protocol, custom, beve)
  • [ ] npm support test
  • [ ] run spawn cube sinewave test
  • [ ] test large data transfers

getnamo avatar Dec 14 '24 19:12 getnamo

binary path works by default, TBD if we want that path.

getnamo avatar Dec 14 '24 23:12 getnamo

custom command structure works via IPC, but this is probably not a great general solution, need to investigate a general IPC protocol that's portable, fast, and supports JSON like structure with binary interweave, enabling flexible event messaging. Likely fits inside CLISystem plugin as a separate module.

getnamo avatar Dec 15 '24 07:12 getnamo