mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-08-16 12:53:38 +00:00
completely rework the parsing structure because I now realize how frames work
This commit is contained in:
+1
-4
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user