Skip to content

[Question] How publish/subscribe private message #926

Open
@kevcomparadise

Description

Hi,

I am trying to get private messages working on Mercure, but I am unable to receive the messages. Could you provide me with the steps to follow?

I have configured the JWT for the subscriber like this:
{ "mercure": { "publish": [ "*" ] } }

And the JWT for the publisher like this:
{ "mercure": { "subscribe": [ "https://example.com/users/foo/{?topic}" ] } }

There are no errors when I publish with this configuration, but when I check the second parameter "topic" and set "private=On", my client stops receiving anything (without this, it receives just fine).

image

Did I miss something?

P.S.: I have tried with urlencode() and without, with the same result. (#591 (comment))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions