Skip to main content
Version: v8.0.0

DeliveryStrategyContextType

Context handed to a delivery strategy when a subscription starts.


Import
import { DeliveryStrategyContextType } from "@hyper-fetch/sockets"

Preview​

type DeliveryStrategyContextType<Output,Extra> = {
deliver: (message: DeliveryMessageType<Output, Extra>) => void;
}

Structure​

DeliveryStrategyContextType
NameTypeDescription
deliver
(message: DeliveryMessageType<Output, Extra>) => void

Hands a (possibly aggregated) message to the user's listen callback.