MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / stop

Method stop

tests/web_server.py:65–72  ·  view source on GitHub ↗

Stop the web server.

(self)

Source from the content-addressed store, hash-verified

63 time.sleep(0.1)
64
65 def stop(self):
66 """Stop the web server."""
67 self.sio.shutdown()
68 self.httpd.shutdown()
69 self.httpd.server_close()
70 self.thread.join()
71 self.httpd = None
72 self.thread = None
73
74 def _app_wrapper(self, environ, start_response):
75 try:

Callers 4

wrappedFunction · 0.95
wrappedFunction · 0.95
renderFunction · 0.45
index.jsFile · 0.45

Calls 1

shutdownMethod · 0.45

Tested by 2

wrappedFunction · 0.76
wrappedFunction · 0.76