yeahā¦ I didnāt know what they were for and didnāt fill them outā¦ looked at the code and it was only using them if they were providedā¦ the drop events were working without them so I thought i didnāt need them but maybe they are needed for the syncing to work between clients
Iām not sure what I am supposed to do to run the file serverā¦ is it different from just running the need app? Can I add a method to the needle app to make it a file server?
You need to have the @needle-tools/needle-tiny-storage installed and a fastify (or express, not sure if it supports both) server running and then set it up like so:
import storage from "@needle-tools/needle-tiny-storage";
storage.initFastify(fastify, { registerPlugins: true });
you can check what the glitch starter does there (in server.js line 45)
OK. So using only the DropListener.ts in the NT distro, if I provide the backend URL for the glitch.io server as the main address of the Glitch app (https://fsstudio-review-poc.glitch.me) when I drag a GLB file into the main app, it does show up on another machine when both instances are using the glitch.io server and in the same room.