completely rework the parsing structure because I now realize how frames work

This commit is contained in:
2023-09-10 23:40:06 -05:00
parent 7a1366303f
commit 17224d9319
9 changed files with 261 additions and 132 deletions
+1 -4
View File
@@ -6,13 +6,10 @@ const client = dgram.createSocket('udp4');
const psnDecoder = new Decoder();
client.on('listening', () => {
const address = client.address();
client.setBroadcast(true);
client.setMulticastTTL(128);
client.addMembership('236.10.10.10');
});
client.on('message', (message, remote) => {
client.on('message', (message) => {
psnDecoder.decode(message);
});