MCPcopy Index your code
hub / github.com/python-websockets/websockets / run_server

Method run_server

tests/legacy/test_client_server.py:1421–1427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1419
1420 def test_server(self):
1421 async def run_server():
1422 # Await serve.
1423 server = await serve(default_handler, "localhost", 0)
1424 self.assertTrue(server.sockets)
1425 server.close()
1426 await server.wait_closed()
1427 self.assertFalse(server.sockets)
1428
1429 self.loop.run_until_complete(run_server())
1430

Callers

nothing calls this directly

Calls 3

serveFunction · 0.50
closeMethod · 0.45
wait_closedMethod · 0.45

Tested by

no test coverage detected