I tried to follow chat implementation from here https://github.com/dunglas/mercure/tree/master/examples/chat. But so far, I didn't succeed to achieve that.
For Mercure hub implementation I build a small docker compose :
version: '3.5'
services:
mercure:
container_name: mercure
image: dunglas/mercure
environment:
- JWT_KEY=!ChangeMe!
- DEMO=1
- ALLOW_ANONYMOUS=1
- CORS_ALLOWED_ORIGINS=http://127.0.0.1:5000
- PUBLISH_ALLOWED_ORIGINS=http://127.0.0.1:5000
ports:
- "3000:80"
And posting messages seems work :
And flask side, I haven't modify original depos, i am starting the server with pycharm (flask run): https://github.com/dunglas/mercure/tree/master/examples/chat
But I get this error when page is loaded :
And if i post message, i got 200 from mercure but nothing flask side. What am i doing wrong? Thank you
EDIT :
I figured it out that the issue comes from when I call
Si why I got 404 when I try to get all subscribers? did I miss-configuration?
I figured it out :
So first SUBSCRIPTIONS to 1 issue:
Then quote from Doc :