Answer the question
In order to leave comments, you need to log in
How to emit an event from a separate process?
There is a web application on Node / Express / Socket.io
When performing a difficult operation, I connect the Bull task queue, which creates a separate process for the task. But now it’s not clear how I can send an event to the client who sent the initial request from this task-process?
socket.io.emit(`imageprocessing:${job.id}`, finaleResult)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question