Remove self from websocker example app (#1103)

Co-authored-by: Jamie Hewland <jhewland@gmail.com>
This commit is contained in:
Denis Eliseev 2021-02-02 16:01:03 +05:00 committed by GitHub
parent fe908b1c29
commit 2b83c8cea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ Signature: `WebSocket(scope, receive=None, send=None)`
from starlette.websockets import WebSocket 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) websocket = WebSocket(scope=scope, receive=receive, send=send)
await websocket.accept() await websocket.accept()
await websocket.send_text('Hello, world!') await websocket.send_text('Hello, world!')