Skip to content

Commit

Permalink
fix: internal server error when connecting to publication with backwa…
Browse files Browse the repository at this point in the history
…rd compatibility flag
  • Loading branch information
pierre-lehnen-rc committed Mar 27, 2024
1 parent 5b7623d commit 0bdd5ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/great-yaks-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/ddp-streamer': patch
---

Fixed an internal server error when using the backwards compatibility flag to connect to the real time API for listening to all server message notifications.
2 changes: 1 addition & 1 deletion ee/apps/ddp-streamer/src/Publication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Publication extends EventEmitter implements IPublication {
this.once('stop', () => client.subscriptions.delete(packet.id));

this._session = {
sendAdded: this.added,
sendAdded: this.added.bind(this),
socket: client,
userId: client.userId,
};
Expand Down

0 comments on commit 0bdd5ed

Please sign in to comment.