You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explanation: Any single client will be connected to a content_id and will listen for markers and status, as these are both needed to populate the frontend page.
The worker will do some CPU heavy processing and generate the marker_data and status_data periodically on a cron schedule. The worker would need to independently send this to all the clients connected on that particular channel.
Where do I put the API endpoint? I don't really see a reason for it here? But on the client side I need to provide a value to the EventSource declaration:
constsse=newEventSource('/api/v1/sse');
Any help will be much appreciated.
The text was updated successfully, but these errors were encountered:
Explanation: Any single client will be connected to a content_id and will listen for markers and status, as these are both needed to populate the frontend page. The worker will do some CPU heavy processing and generate the marker_data and status_data periodically on a cron schedule. The worker would need to independently send this to all the clients connected on that particular channel.
Where do I put the API endpoint? I don't really see a reason for it here? But on the client side I need to provide a value to the EventSource declaration:
Can I send SSEs using an RQ worker running in a different docker container?
My code looks like this right now:
Explanation: Any single client will be connected to a
content_id
and will listen formarkers
andstatus
, as these are both needed to populate the frontend page.The worker will do some CPU heavy processing and generate the
marker_data
andstatus_data
periodically on a cron schedule. The worker would need to independently send this to all the clients connected on that particular channel.Where do I put the API endpoint? I don't really see a reason for it here? But on the client side I need to provide a value to the
EventSource
declaration:Any help will be much appreciated.
The text was updated successfully, but these errors were encountered: