Use werkzeug URL routing (like Flask does) for view_functions, aka handlers.

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.