Skip to content

Unable to find route for acme/channel #424

@NOaMTL

Description

@NOaMTL

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions