def METHOD_NAME(self, instance_id):
    key_required = conf.get('access_key', '')
    if key_required != '':
        if key_required != self.get_cookie('access_key', None):
            self.close()
    log.debug('%s', 'Websocket opened')
    self._instance_id = instance_id
    ClientConnection.number_of_connections += 1
    self.set_nodelay(True)