Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] help

Hey. 

I'm trying to develop some multyplayer game with MQTT and i have some issue. 
you can find the game on github:
https://github.com/vovacooper/FxRunner


Each client should send his position about 30 times a second which is working but with an issue:
all the subscribers (other players) is receiving the data 2 around times a second (about 15 messages each time).

Example:
lets say the that one player sending 100 times a second at time : 0s , 0.01s , 0.02s, ... ,
the client receiving the data times: 0.5s , 0.501 , 0.502 , 0.503 ... 0.55 ...   0.901 , 0.902 ... 0.95 


i'm currently using Mosquitto broker on my server


so my question is in general is it possible to send real time messages with MQTT (by real time i mean message by message and not chunks of messages).
if it is possible what could be the issue? 

Thank you 
vovacooper


Back to the top