How define route with parameter? #460
Unanswered
krajcikondra
asked this question in
Q&A
Replies: 1 comment
-
https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/3.x/docs/rpc.md#step-3-add-a-route-for-your-service has an example of a param in the route. Essentially, it’s the same as configuring a normal Symfony router with YAML. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I chat RoomChatTopic with routing.yaml file
But I want to have more then one one room. Therefor I need distinguish room where user connect. Parameter in routing parttern seems me to be good solution. But I am not sure if is possible define parameter in pattern like this:
When I define routing pattern with parameter and try connect by javascript client
myWs.subscribe('roomChat/channel/123', (uri, msg) => { ... });
I get following error:
10:06:35 ERROR [websocket] Unable to find route for roomChat/channel/123
It is some other way to define parameter?
Beta Was this translation helpful? Give feedback.
All reactions