shutdown Method
Shuts down the server.
Syntax
def shutdown() -> None: ...
Remarks
This method shuts down the server. Calling this method is equivalent to setting listening to False, and then breaking every client connection by calling disconnect.