Added app to websocket request (#1)

This commit is contained in:
James Stidard 2017-02-28 06:33:18 +00:00 committed by Miguel Grinberg
parent 7560660ec7
commit 104a7c7d05

View File

@ -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: