From 2efe3cdd3f174378e3a28fd7be5b5bd6177a20d0 Mon Sep 17 00:00:00 2001 From: Ciro Date: Mon, 7 Nov 2022 14:54:08 -0300 Subject: [PATCH] add fix in upgrade_async example --- examples/upgrade_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/upgrade_async.py b/examples/upgrade_async.py index 62bbe7e..2f9c6fd 100644 --- a/examples/upgrade_async.py +++ b/examples/upgrade_async.py @@ -26,7 +26,7 @@ app.ws("/*", { 'message': ws_message, 'upgrade': ws_upgrade, 'drain': lambda ws: print('WebSocket backpressure: %s', ws.get_buffered_amount()), - 'close'lambda ws, code, message: print('WebSocket closed') + 'close': lambda ws, code, message: print('WebSocket closed') }) app.any("/", lambda res,req: res.end("Nothing to see here!'")) app.listen(3000, lambda config: print("Listening on port http://localhost:%d now\n" % (config.port)))