Skip to content

Filtering real-time messages for users #2031

Locked Answered by scottinet
foralobo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Events are not propagated outside Kuzzle, so users never have access to them. So unless I didn't understand your solution, I don't think that it's a viable one.

An easy way to do that is to use profiles: you can code your pipe in such a way that if a user belongs to some profile, then they can complete a given subscription. User profiles are also available in the KuzzleRequest object provided to pipes.

Another way would be to add complementary permission properties to your user objects: user objects in Kuzzle are extensible with custom content.

Either way, this would make your verifications dynamic, and linked directly to Kuzzle's permission system. So all you have to do is to check f…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@foralobo
Comment options

@scottinet
Comment options

@foralobo
Comment options

@foralobo
Comment options

@foralobo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by rolljee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants