Back

Is it possible to send data as well as receive data via Realtime?

  • 0
  • Web
Triptych
12 Aug, 2023, 15:53

I am working on a web based game, and I worry that I will hit the limitations on updates. The information I am sending is the position of each user in a game level. It seems to me that I could somehow leverage Realtime sockets to allow all the players to send their positions - sockets are 2 way I assume, but it seems like the Realtime updates are only server push?

TL;DR
User is wondering if it is possible to send and receive data via Realtime. Another user confirms that it is possible and currently working fine for them. There is a suggestion to create a document to trigger a new event. However, another user disagrees and states that Realtime is only meant for receiving new events. The original user is concerned about hitting limitations on updates for their web-based game. They want to send the position of each user in the game level using Realtime sockets but are unsure if Realtime updates are only server push. Solution: Realtime is primarily designed for receiving new events rather than sending data. It may not be
Drake
12 Aug, 2023, 16:07

No, realtime is only meant for receiving new events

Drake
12 Aug, 2023, 16:08

You would create a document to trigger a new event

Triptych
12 Aug, 2023, 22:54

Yeah - that's how it's working for me right now - and it's working fine. Everything is turn - based right now so I think I'll be ok with rate limiting.

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