diff --git a/sanic/app.py b/sanic/app.py index 7ddbbdbc06..9b0bc35e87 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -494,9 +494,7 @@ def response(handler): websocket_handler = partial( self._websocket_handler, handler, subprotocols=subprotocols ) - websocket_handler.__name__ = ( - "websocket_handler_" + handler.__name__ - ) + websocket_handler.__name__ = handler.__name__ routes.extend( self.router.add( uri=uri,