These are chat archives for cherrypy/cherrypy

Aug 2016
Sviatoslav Sydorenko
Aug 12 2016 12:16
Yes, you should specify routes inside of it

perhaps smth like follows will work

ws_routes = cherrypy.dispatch.RoutesDispatcher()
ws_routes.mapper.explicit = False
ws_routes.connect('ws', '/', WSWebSocketHandler, action='ws_get')

P.S. I didn’t test this, it’s just a guess

Sviatoslav Sydorenko
Aug 12 2016 12:23
Or maybe you should just add this subroute to your main routes dispatcher and apply tools.websocket just to handler class