Refactor packets
Closed this issue · 0 comments
Mikerah commented
Currently, there are 3 files related to packet functionality, packets.ts
, encode.ts
and decode.ts
. This can be simplified into a single file where we have a Packet
class with methods encode()
and decode
and then make heavy use of polymorphism in order to simplify the discv5 service.