diff --git a/examples/parse_packet.js b/examples/parse_packet.js new file mode 100644 index 0000000..d4569b9 --- /dev/null +++ b/examples/parse_packet.js @@ -0,0 +1,6 @@ +import Packet from "../src/packet.js"; + +const bytes = Buffer.from("0200B401DF6528CC9778A56F36FE9399A5CF6B0C7EDE", "hex"); +const packet = Packet.fromBytes(bytes); + +console.log(packet);