Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: SERVER_SIDE_EMIT support publishOnSpecificResponseChannel
related: #407
  • Loading branch information
dr-js committed Apr 9, 2024
commit 5e295bc39bb03c770422cb43e788507d8bc50f27
5 changes: 4 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,11 @@ export class RedisAdapter extends Adapter {
}
called = true;
debug("calling acknowledgement with %j", arg);
const responseChannel = this.publishOnSpecificResponseChannel
? `${this.responseChannel}${request.uid}#`
: this.responseChannel;
this.pubClient.publish(
this.responseChannel,
responseChannel,
JSON.stringify({
type: RequestType.SERVER_SIDE_EMIT,
requestId: request.requestId,
Expand Down