Reads and decodes one STOMP frame from a framed reader.
Reads the command line and headers, then the body: when a content-length header is present it
reads exactly that many bytes and consumes the trailing NUL, otherwise it reads up to the first
NUL. Leading blank lines (heart-beat newlines) before a command are skipped.
Parameters
reader: FramedReader
The framed reader to pull from.
OptionaltimeoutMs: number
Optional read deadline applied to each underlying read.
Reads and decodes one STOMP frame from a framed reader.
Reads the command line and headers, then the body: when a
content-lengthheader is present it reads exactly that many bytes and consumes the trailing NUL, otherwise it reads up to the first NUL. Leading blank lines (heart-beat newlines) before a command are skipped.