Skip to content

Commit 1210ee8

Browse files
xuanzhi33aaugustin
authored andcommitted
Update server.rst
1 parent ee997c1 commit 1210ee8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/faq/server.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ Here's how to adapt the example just above::
300300

301301
server = await websockets.serve(echo, "localhost", 8765)
302302
await stop
303-
await server.close(close_connections=False)
303+
server.close(close_connections=False)
304+
await server.wait_closed()
304305

305306
How do I implement a health check?
306307
----------------------------------

0 commit comments

Comments
 (0)