code: def onConnect(self, request):
          
          logger.debug("Connection opened ({peer})".format(peer=self.peer))
  
          self.storage = {}
          self._client_id = str(uuid1())
docs: Called when a client opens a websocket connection