import { PolusBuffer } from "../util/polusBuffer" ; import { PacketHandler } from "./packet" ; export interface AcknowledgementPacket { Nonce : number ; } export const Acknowledgement = { parse ( packet ) { return { Nonce : packet . readU16 ( true ) , } ; } , serialize ( packet ) { var buf = new PolusBuffer ( 3 ) ; buf . writeU16 ( packet . Nonce , true ) ; buf . writeU8 ( 0xff ) ; return buf ; } , } ;