Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
feat: send connectionId to clients into realtime message
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossantos74 committed Jun 2, 2024
1 parent a845cd1 commit 181255b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/realtime/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export class Channel extends Observable {
participantId: event?.presence?.id || null,
name: event.data.name,
timestamp: event.timestamp,
connectionId: event.connectionId,
} as RealtimeMessage);
});
}
Expand Down Expand Up @@ -174,9 +175,9 @@ export class Channel extends Observable {
data: event.data.payload,
connectionId: event.connectionId,
name: event.data.name,
participantId: event.presence.id,
participantId: event.presence?.id,
timestamp: event.timestamp,
});
} as RealtimeMessage);

return group;
},
Expand Down

0 comments on commit 181255b

Please sign in to comment.