Skip to content

Commit df8e70f

Browse files
authored
fix: return the first response when broadcasting to a single socket (#4878)
1 parent 8c9ebc3 commit df8e70f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/broadcast-operator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export class BroadcastOperator<EmitEvents extends EventsMap, SocketData>
254254
clearTimeout(timer);
255255
ack.apply(this, [
256256
null,
257-
this.flags.expectSingleResponse ? null : responses,
257+
this.flags.expectSingleResponse ? responses[0] : responses,
258258
]);
259259
}
260260
};

0 commit comments

Comments
 (0)