General presentation
WebSocket server is a bridge between DCCs and frontend.
DCCs and Silex desktop frontend interface need to communicate in realtime, and we use a socket server to achieve that. You can figure a socket server as a chat room, where each client is connected anc can send requests. Because Silex desktop frontend and DCCs are connected on the same socket service, they can interact.
In order to achieve Separation of Concerns, it is neither the Silex desktop frontend nor the DCCs that accomplish file actions, but the Silexsocket Service itself.
Silex Socket Service use Socket-io library. Socket-io is a protocol that use WebSocket.
Get Started
On standalone :
- get latest release
yarn
yarn start
In desktop project:
- Create .npmrc next to package.json and put that in:
- Dont forget to replace <YOUR_GITHUB_TOKEN> with your github access token, ref : here
//npm.pkg.github.com/:_authToken=<YOUR_GITHUB_TOKEN> # only if your repository is private
@ArtFXDev:registry=https://npm.pkg.github.com/ npm install @artfxdev/silex-socket-service