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

Constructors

new
Parser(dispatcher: Dispatcher<ParserEvent>)

Properties

optional
argBuf: DenoBuffer
as: number
dispatcher: Dispatcher<ParserEvent>
drop: number
hdr: number
ma: MsgArg
optional
msgBuf: DenoBuffer
state: State

Methods

fail(data: Uint8Array, label?): Error
parse(buf: Uint8Array): void
processHeaderMsgArgs(arg: Uint8Array): void
processMsgArgs(arg: Uint8Array): void
protoParseInt(a: Uint8Array): number