Fastify: How to wait for Redis pub/sub message before sending response?
I have a route that needs to wait for a Redis pub/sub message before it can send a response. app.post('/route', async function (req: any, rep) { // Listen for redis redis.on('message', async (ch, msg) => { let match = JSON.parse(msg)…