GeniusesOfSymfony / WebSocketBundle

:part_alternation_mark: Websocket server for Symfony applications (powered by Ratchet), includes a Autobahn.JS based JavaScript client
MIT License
609 stars 140 forks source link

Unable to find route for acme/channel #424

Closed NOaMTL closed 3 years ago

NOaMTL commented 3 years ago

Hello,

I tried to follow the Readme and I installed WebSocketBundle on a 5.2.6 Symfony. I get this message "Unable to find route for acme/channel" when I subscribe to the topic from client image

this is my code : services.yaml

app.websocket.topic.acme:
        class: App\Websocket\Topic\AcmeTopic
        tags:
            - { name: gos_web_socket.topic }

image My AcmeTopic is the exact same as in the Readme.

my gos_websocket.yaml

gos_web_socket:
  server:
    port: 8080        # The port the socket server will listen on
    host: 127.0.0.1   # The host ip to bind to
    router:
      resources:
        - '%kernel.project_dir%/config/pubsub/routing.yaml'
  client:
    firewall: main # Can be an array of firewalls
    session_handler: Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler

image my config/pubsub/routing.yaml

acme_topic:
  channel: acme/channel
  handler: 'acme.topic'

Also user is still anonymous while I see the session being stored in the sql.

Thank you.