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

Properties

name: string

Name of the stream source

optional
opt_start_seq: number

An optional start sequence from which to start reading messages

optional
opt_start_time: string

An optional start time Date string

optional
filter_subject: string

An optional filter subject. If the filter matches the message will be on-boarded.

optional
external: ExternalStream

This value cannot be set if domain is set

optional
domain: string

This field is a convenience for setting up an ExternalStream. If set, the value here is used to calculate the JetStreamAPI prefix. This field is never serialized to the server. This value cannot be set if external is set.

optional
subject_transforms: SubjectTransformConfig[]

Apply a subject transforms to sourced messages before doing anything else. This feature only supported on 2.10.x and better.