Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
type alias DispatchedFn
import { type DispatchedFn } from "https://deno.land/x/natsws@v1.29.2/src/nats-base-client.ts";

DispatcherFn allows for values to be processed after being presented to the iterator. Note that if the ProtocolFilter rejected the value it will not be presented to the DispatchedFn. Any processing should instead have been handled by the ProtocolFilterFn.

Type Parameters

optional
T = unknown
definition: (data: T | null) => void