Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/net/mod.ts>Packet#writeObject

A networking framework that aims to enable the development of complex multi-port servers and clients.
Go to Latest
method Packet.prototype.writeObject
import { Packet } from "https://deno.land/x/net@v1.0.4/mod.ts";

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.

Parameters

object: Record<string, unknown>

The object to serialize.

optional
seen: Set<unknown> = [UNSUPPORTED]