From 2b83c8cea6afbb1166f766d89a684312bf6d61c2 Mon Sep 17 00:00:00 2001 From: Denis Eliseev Date: Tue, 2 Feb 2021 16:01:03 +0500 Subject: [PATCH] Remove self from websocker example app (#1103) Co-authored-by: Jamie Hewland --- docs/websockets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/websockets.md b/docs/websockets.md index ac94e23e..80749618 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!')