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

The signature a message handler for a JetStream subscription.

definition: (err: NatsError | null, msg: JsMsg | null) => void