Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class MsgImpl
implements Msg
import { MsgImpl } from "https://deno.land/x/natsws@v1.28.0/src/nats-base-client.ts";

Constructors

new
MsgImpl(
msg: MsgArg,
data: Uint8Array,
publisher: Publisher,
)

Properties

optional
_headers: MsgHdrs
_msg: MsgArg
_rdata: Uint8Array
_reply: string
_subject: string
readonly
data: Uint8Array
readonly
headers: MsgHdrs | undefined
publisher: Publisher
readonly
reply: string
readonly
sid: number
readonly
subject: string

Methods

json<T = unknown>(reviver?: ReviverFn): T
respond(data?: Uint8Array, opts?: { headers?: MsgHdrs; reply?: string; }): boolean
size(): number
string(): string