Questions about MQTT

wonder

Expert
Licensed User
Longtime User
Hello hello,

Erel, I remember seeing a thread a while ago which contained a video of you drawing some circles on the PC and having it being streamed instantaneously to the Android device.

Was it a library? I can't find it.
Can I use it for a multiplayer game?

Many thanks in advance!
 

wonder

Expert
Licensed User
Longtime User
Thank you so much, guys!!

Some questions:
- Will it be fast enough to real-time multiplayer?
- Is it possible to achieve a ping time between 30 and 50 milliseconds?
- If so, it does depend on the server, right?
- What would be the maximum data package size (in bytes) to achieve such values?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Assuming that I have my own B4J server, it should be possible (maybe without MQTT?) , right?
No. The latency I talk about is not related to the protocol. It takes time for a single byte to go from your computer, through all the gateways and reach the server.

If your server is physically close to the users then the latency will be smaller.

Whether you choose a MQTT server or HTTP server will most probably not affect the latency at all.

For example a ping round-trip to b4x.com:
My computer in Israel - ~200ms
A computer in USA - ~30ms
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…