dddp/websocket.py
def on_close(self, *args, **kwargs):
        """Handle closing of websocket connection."""
        if self.connection is not None:
            del self.pgworker.connections[self.connection.pk]
            self.connection.delete()
            self.connection = None
        signals.request_finished.send(sender=self.__class__)
        safe_call(self.logger.info, '- %s %s', self, args or 'CLOSE')
def on_close(self, *args, **kwargs):
        """Handle closing of websocket connection."""
        if self.connection is not None:
            del self.pgworker.connections[self.connection.pk]
            self.connection.delete()
            self.connection = None
        signals.request_finished.send(sender=self.__class__)
        safe_call(self.logger.info, '- %s %s', self, args or 'CLOSE')
def on_close ( self , * args , * * kwargs ) : if self . connection is not None : del self . pgworker . connections [ self . connection . pk ] self . connection . delete ( ) self . connection = None signals . request_finished . send ( sender = self . __class__ ) safe_call ( self . logger . info , '- %s %s' , self , args or 'CLOSE' )
Handle closing of websocket connection.
Handle closing of websocket connection .