Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Correct the example for "Starting a server" in the API reference #1448

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update server.rst
  • Loading branch information
xuanzhi33 committed Feb 28, 2024
commit 88cc834786637b089d3c45c707f4703b81d0d044
3 changes: 2 additions & 1 deletion docs/faq/server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ Here's how to adapt the example just above::

server = await websockets.serve(echo, "localhost", 8765)
await stop
await server.close(close_connections=False)
server.close(close_connections=False)
await server.wait_closed()

How do I implement a health check?
----------------------------------
Expand Down