Use werkzeug URL routing (like Flask does).

...ers.

This allows the use of parameters in URLs, for example a route of

    @sockets.route("/chat/<name>/")
    def chat_channel(name):
       # ...

properly gets passed the channel name.