Add tests for packet decode/encode (and fix some bugs found by the tests!)
This commit is contained in:
20
testing/packets/CompletePingCheckMessage.json
Normal file
20
testing/packets/CompletePingCheckMessage.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"sentAcks": [],
|
||||
"receivedAcks": [],
|
||||
"packet": {
|
||||
"packetFlags": 0,
|
||||
"sequenceNumber": 2112,
|
||||
"extraHeader": {
|
||||
"type": "Buffer",
|
||||
"data": []
|
||||
},
|
||||
"message": {
|
||||
"name": "CompletePingCheck",
|
||||
"messageFlags": 1,
|
||||
"id": 2,
|
||||
"PingID": {
|
||||
"PingID": 17
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user