createSubscribeHandler
createSubscribeHandler(
options): (request) =>Promise<Response>
Defined in: packages/server/src/circuits/subscribe.ts:388
The subscribe route: verified claims in, a token and stream paths out.
Deliberately a POST that returns paths rather than a redirect to them. The client needs the whole batch to open K long-polls and to know when to re-mint, and a redirect would give it one stream and no expiry.
Parameters
Section titled “Parameters”options
Section titled “options”SubscribeOptions & object
Returns
Section titled “Returns”(request) => Promise<Response>