JavaScript client library for christmasd.
See christmas-js-example.
Important
This library only works with ES Modules. Make sure you have
"type": "module"
in your package.json
.
npm i acmCSUFDev/christmas-client-js#main
import { LEDCanvas } from "christmas-client-js";
const canvas = new LEDCanvas("ws://...");
await canvas.connect();
const canvasInfo = await canvas.canvasInfo();
canvas.draw(canvasInfo, image);