(self)
Properly initiate closing handshakes on
        all websockets when the WSGI server terminates.
Properly initiate closing handshakes on
        all websockets when the WSGI server terminates.
Properly initiate closing handshakes on all websockets when the WSGI server terminates .
def server_close(self):
        """
        Properly initiate closing handshakes on
        all websockets when the WSGI server terminates.
        """
        if hasattr(self, 'manager'):
            self.manager.close_all()
            self.manager.stop()
            self.manager.join()
            delattr(self, 'manager')
        _WSGIServer.server_close(self)
def server_close ( self ) : if hasattr ( self , 'manager' ) : self . manager . close_all ( ) self . manager . stop ( ) self . manager . join ( ) delattr ( self , 'manager' ) _WSGIServer . server_close ( self )