Useful for debugging, writes packets to a file
new(path:String)
sendPacket(packet:Bytes):Promise<Int>