NodeJs-Unreal
NodeJs-Unreal copied to clipboard
Refactor to CLISystem
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
binary path works by default, TBD if we want that path.
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.