import { Packet } from "https://deno.land/x/net@v1.0.4/mod.ts";
Packet is a structured string of bytes that serves to facilitate communication between client and server.
Methods
readBoolean(): boolean
readByte(): number
readInt(): number
readObject(): Record<string, unknown>
readShort(): number
readUTF(): string
writeObject(object: Record<string, unknown>, seen?: Set<unknown>): void
Deep serializes the given object into a Packet. Only will serialize keys that have value types of number, boolean, string, or object. Also ignores prototype properties.
[Symbol.iterator](): Iterator<number>