Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface Codec
import { type Codec } from "https://deno.land/x/natsws@v1.27.0/src/nats-base-client.ts";

Methods

encode(d: T): Uint8Array

Encode T to an Uint8Array suitable for including in a message payload.

decode(a: Uint8Array): T

Decode an Uint8Array from a message payload into a T