Well great idea. CDP over WebSocket to drive the Electron shell is a clean approach, no reverse engineering needed and you stay within supported boundaries.