Skip to content

Commit

Permalink
UDSP I/O Refactor Part 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal Web committed May 15, 2023
1 parent e64d682 commit 9fa9378
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions udsp/reply.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,18 +250,18 @@ export class Reply {
}
}
export function reply(request, client) {
const {
const {
events,
actions
} = server;
} = request.server;
const {
body,
sid,
evnt,
act
} = message;
} = request.message;
if (!evnt && !act) {
return failed(`Invalid no EVNT (evnt) or Action (act) name given. ${stringify(message)}`);
return failed(`Invalid no EVNT (evnt) or Action (act) name given. ${stringify(request.message)}`);
} else if (evnt && act) {
msgReceived(`Action & Event received ${act} & ${evnt}`);
} else if (act) {
Expand All @@ -270,7 +270,6 @@ export function reply(request, client) {
msgReceived(`Event (Higher level application event) received ${evnt}`);
}
const { replyQueue } = client;
const { sid } = request;
msgReceived(`Stream ID: ${sid}`);
if (replyQueue.has(sid)) {
msgReceived(`REPLY FOUND: ${sid}`);
Expand Down

0 comments on commit 9fa9378

Please sign in to comment.