Skip to content

Commit

Permalink
fix: return the first response when broadcasting to a single socket (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
BCCSTeam authored Jan 2, 2024
1 parent 8c9ebc3 commit df8e70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/broadcast-operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class BroadcastOperator<EmitEvents extends EventsMap, SocketData>
clearTimeout(timer);
ack.apply(this, [
null,
this.flags.expectSingleResponse ? null : responses,
this.flags.expectSingleResponse ? responses[0] : responses,
]);
}
};
Expand Down

0 comments on commit df8e70f

Please sign in to comment.