I am trying to setup a Ratchet Websocket server on my Symfony 6 app for production environment on platform.sh
Didn't find any reliable documentation about the subject, I have several questions :
- According to https://docs.platform.sh/define-routes.html#websocket-routes I must define routes in
.platform/routes.yaml for websocket
, but I have actually no idea what values I should put there :
"https://{default}/ws": # is that some default route ? Should I set it in my app router too ?
type: upstream
upstream: "ws-app:http" # what exactly is ws-app ? Should I have a separated app ?
cache:
enabled: false
Knowing that locally the server works fine via ws://127.0.0.1:8080
- How to actually start the server in production ? Should I add something in my deploy scripts ?
Should I use
RabbitMQ
or something similar ? Do I need a worker ?
Thanks for your help!