- aws_emit(wsreq->aws, retcode, wsreq->id, wsreq->idlen, afb_msg_json_reply(status, info, resp, token, NULL), token);
+ struct json_object *reply = afb_msg_json_reply(status, info, resp, token, uuid);
+ aws_emit(wsreq->aws, retcode, wsreq->id, wsreq->idlen, reply, token);