Skip to content

How to send a message during a "real" process #7

Open
@etshy

Description

@etshy

I read your docs but I don't really understand how I can send a message during a process.

In my case, for exemple, I'd like to "dispatch/broadcast/push" (I don't know what's the correct term) a message from server to specific clients after an Article is created.

For example, I go on a page /article/create and I submit the form to create the Article.
As soon as the Article is created, I'd like to push a message for all the clients "subscribed" to this article's category. The response of this request must a "classic" Response, for the page to reload, etc., soI don't know what to do (and where) to send the message to the clients.

Where do I need to put the logic to create the StreamedResponse and send the message ?

ps : I'm using Symfony 4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions