Would it be possible to make it optional to include node.js with the build? This would be required for those of us building games that utilise a local server/client architecture.
Hello Bioburden,
It's great to have you here! Our vision is to pack small games that include everything we need. While there are many frameworks available with Chromium and Node.js, we see this as an opportunity to develop our own native server communication API without unnecessary bloat. I'll note this as a feature request for upcoming updates.
This will be possible in the next update fyi :-):
const ws = new WebSocket('wss://server.com/game');
ws.onopen = () => console.log('Connected');
ws.onmessage = (e) => console.log('Data:', e.data);
ws.onerror = (e) => console.error('Error:', e);
ws.onclose = () => console.log('Disconnected');
ws.send(JSON.stringify({ action: 'move', x: 10, y: 20 }));