From 87748950d05c22fe7de84800572f81b8a465596d Mon Sep 17 00:00:00 2001 From: Denis Eliseev Date: Fri, 27 Nov 2020 10:10:01 +0500 Subject: [PATCH] Remove self from websocker example app --- docs/websockets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/websockets.md b/docs/websockets.md index ac94e23ee..807496188 100644 --- a/docs/websockets.md +++ b/docs/websockets.md @@ -10,7 +10,7 @@ Signature: `WebSocket(scope, receive=None, send=None)` from starlette.websockets import WebSocket -async def app(self, scope, receive, send): +async def app(scope, receive, send): websocket = WebSocket(scope=scope, receive=receive, send=send) await websocket.accept() await websocket.send_text('Hello, world!')