I have a realtime channel with nested channels setup, that accepts the following format :
table_name/record_id
I have removed the ability for anonymous clients to connect to this channel, however I want to add one more layer ofsecurity by checking the record_id against details of the authenticated user. If the details do not match, I want the join request to be rejected.
To make this work, do I simply add into the realtime trigger for Join events and pre-condition check, that if failed would prevent the connection?
Thanks.