Slim + Websockets: using routes?

I’ve been asked to investigate the possibility to migrate an application which uses tons of ajax requests to websockets. I’d like to use WAMP with Thruway.

So, I have a lot of Ajax requests to convert. Each of these currently uses a specific Ajax-specific URL. I’m wondering whether it’s possible to use routes for the equivalent Socket requests.

I realize that the socket request will hit the same socket URL, but is there a way to dynamically construct a route from a (string) parameter (say something like “/updateStatistics”) and then use Slim’s infrastructure to call the correct controller method?

Thanks for any insights.