Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface KvEntry
import { type KvEntry } from "https://deno.land/x/natsws@v1.28.0/src/mod.ts";

Properties

bucket: string
key: string
value: Uint8Array
created: Date
revision: number
optional
delta: number
operation: "PUT" | "DEL" | "PURGE"
length: number

Methods

json<T>(): T

Convenience method to parse the entry payload as JSON. This method will throw an exception if there's a parsing error;

string(): string

Convenience method to parse the entry payload as string. This method may throw an exception if there's a conversion error