Back

Realtime not working in case of team permission is given to document when new document is created.

  • 0
  • Flutter
  • Realtime
Karthik
22 Dec, 2023, 06:58

Realtime not working in case of team permission is given to document when new document is created. new document creation is not shown until i refresh the session. Any fix for this ?.

TL;DR
The user is experiencing an issue with realtime not working for team permission when a new document is created. They have shared their code and mentioned that the issue occurs on the client side. A solution or fix for the issue is not provided in the thread.
D5
22 Dec, 2023, 07:15

Is this cloud or self-hosted?

D5
22 Dec, 2023, 07:15

Could you please show your code?

Karthik
26 Dec, 2023, 05:44

self hosted.

Karthik
26 Dec, 2023, 05:51

i listen to (in lastmessage collection) document. give permission using key. All permission for document are given. but no trigger is going when new document is created. But when refreshed (new session is created) update to that document is trigger working fine. Working work perfectly if i use a userId instead of team.

ideclon
26 Dec, 2023, 06:47

I don't know much about Dart (which is what I think you're using?), but I don't see anything immediately wrong with your code - the only thing I can think of is, how are you defining RealtimeSubscription (which I assume is a type)?

ideclon
26 Dec, 2023, 06:48

And do you have any way to monitor network requests? If so, could you check to see that the WebSockets connection is being established? And do the events come in to the WebSockets connection?

D5
26 Dec, 2023, 13:49

This is client side code or server side, or both?

Karthik
28 Dec, 2023, 10:58

cilent side.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more