def on_close(self): AliveSockets.remove(self) print("Fetch websocket closed - client " + self.request.remote_ip)