JavaScript example to interact with christmasd using christmas-client-js.
See the src directory for examples.
Before running any of the examples, make sure to install the dependencies:
npm iThen, in each example file (e.g. draw-image.js), you must change the url
variable to point to your instance. For example, if
blinktest says:
Point your script to ws://localhost:9001/ws/018c34b9-2130-7d83-966a-2a93ac5bcd05
Then, you would change the url variable to:
const url = "ws://localhost:9001/ws/018c34b9-2130-7d83-966a-2a93ac5bcd05";Then, run the example:
node src/draw-image.js