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