This sample extension shows you how to use websocket to communicate between a standalone server and a panel. The server folder inside of this sample is a standalone node.js server that needs to be run separately from the panel.
- Photoshop
- Illustrator
- Premier Pro
Note that the extension folder location is different depending on which OS you use. See CEP Cookbook for more details.
cd server && npm install
Photoshop -> Window -> Extensions -> Websocket
node main.js
http://localhost:8000
// For example,
app.activeDocument.close()