Skip to content

Commit

Permalink
fix doc: endpoint websocket example (encode#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
kemingy authored Feb 14, 2020
1 parent 820f9f5 commit 5f4fc85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Echo(WebSocketEndpoint):

routes = [
Route("/", Homepage),
WebSocketRoute("/ws", WebSocketEndpoint)
WebSocketRoute("/ws", Echo)
]

app = Starlette(routes=routes)
Expand Down

0 comments on commit 5f4fc85

Please sign in to comment.