Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MsgImpl

import { MsgImpl } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
class MsgImpl implements Msg {
constructor(
msg: MsgArg,
data: Uint8Array,
publisher: Publisher,
);
_headers?: MsgHdrs;
_msg: MsgArg;
_rdata: Uint8Array;
_reply: string;
_subject: string;
get headers(): MsgHdrs | undefined;
publisher: Publisher;
get subject(): string;
get reply(): string;
get sid(): number;
get data(): Uint8Array;
 
json<T = unknown>(reviver?: ReviverFn): T;
requestInfo(): RequestInfo | null;
respond(data?: Uint8Array, opts?: {
headers?: MsgHdrs;
reply?: string;
}
): boolean;
size(): number;
string(): string;
 
static jc: Codec<unknown>;
}

§Implements

§Constructors

§
new MsgImpl(msg: MsgArg, data: Uint8Array, publisher: Publisher)
[src]

§Properties

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

§Methods

§
json<T = unknown>(reviver?: ReviverFn): T
[src]
§
requestInfo(): RequestInfo | null
[src]
§
respond(data?: Uint8Array, opts?: {
headers?: MsgHdrs;
reply?: string;
}
): boolean
[src]
§
size(): number
[src]
§
string(): string
[src]

§Static Properties

§
jc: Codec<unknown>
[src]