Skip to content

Commit

Permalink
Remove self from websocker example app (#1103)
Browse files Browse the repository at this point in the history
Co-authored-by: Jamie Hewland <jhewland@gmail.com>
  • Loading branch information
deliseev and JayH5 committed Feb 2, 2021
1 parent fe908b1 commit 2b83c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/websockets.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!')
Expand Down

0 comments on commit 2b83c8c

Please sign in to comment.