Skip to content

useNatsSubscription

@wuespace/telestion / auth / useNatsSubscription

useNatsSubscription(subject, callback, options?): void

Parameters

subject: string

callback: (message) => void | Promise<void>

options?: SubscriptionOptions

Returns

void