def mode_receive(self, request):
        suid = request.args.get('suid', ['0'])[0]
        if suid == '0':
            return ''

        dataentries = self.databuffer.get(suid, [])
        if dataentries:
            return dataentries.pop(0)
        request.notifyFinish().addErrback(self._responseFailed, suid, request)
        if suid in self.requests:
            self.requests[suid].finish()  # Clear any stale request.
        self.requests[suid] = request
        return server.NOT_DONE_YET
Return event to mysql server
dataset/ETHPy150Open evennia/evennia/evennia/server/portal/webclient.py/WebClient.mode_receive--crossover with--dataset/ETHPy150Open saltstack/salt/salt/returners/mysql.py/event_return