// a compiled WASM module is shipped in build directory of this packageconstrfxArtNet=awaitrfxArtNetLoader(fetch('rfxArtNet.wasm'));
...
Use
letchannelsIn;letchannelsOut=newUint8Array(Array(512).fill(0));
...
// read channels from an Art-Net packet in a WebSocket frame channelsIn=rfxArtNet.getChannels(wsMessage.data);
...
// write channels to an Art-Net packet, universe 1, send in a WebSocket framews.send(rfxArtNet.getPacket(channelsOut,1));