Running a y-websocket instance in Electron

I’m kinda new to using yjs, I’m writing an electron app and i’d like to be able to start up a y-websocket server (that works over LAN) locally when an IPC message is received. @raine’s snippet on other threads here seemed like what I was looking for but I just have one problem:
the require(“y-websocket/bin/utils.js”); is throwing a “Package subpath is not defined in exports error” and I tried running it standalone in a js file and got the same error. I’m using Node 20

utils.js should be requirable since it is included in the exports section of package.json. The exact details of that depend on whether you are using CommonJS or ESM and how you are importing modules. I’m not sure what the specific issue is in your case though unfortunately.