Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add socket event notification_received #2336

Merged
merged 1 commit into from
Dec 23, 2022

Conversation

davidsoderberg
Copy link
Contributor

What change does this PR introduce?

Add a new socket event when a notification is created

Why was this change needed?

Closing #1220

Comment on lines +184 to +190
await this.queueService.wsSocketQueue.add({
event: 'notification_received',
userId: command.subscriberId,
payload: {
message,
},
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the only place where this needed to be added? Did you had a chance to test it with the iframe embed or the useSocket from react?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes what I can see this is the only place we need to add it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And yes I have test it with useSocket 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants