From 104a7c7d059c1fb8f59265290591f606f00dae62 Mon Sep 17 00:00:00 2001 From: James Stidard Date: Tue, 28 Feb 2017 06:33:18 +0000 Subject: [PATCH] Added app to websocket request (#1) --- sanic/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sanic/app.py b/sanic/app.py index 633fef17..bb52fdf8 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -186,6 +186,7 @@ class Sanic: def response(handler): async def websocket_handler(request, *args, **kwargs): + request.app = self protocol = request.transport.get_protocol() ws = await protocol.websocket_handshake(request) try: