I hope some of you have already worked on both and have a general idea of the differences between them.
Currently (for centuries) I'm trying to develop an online multiplayer turn-based game.
I know MQTT not so much, but I can not see great advantages in using it instead of WebSockets.
The only advantage I see is that if a player performs an action, using the websockets I have to write a for-next loop on "players objects" to send a message, instead with MQTT I could write a single line of code, like:
client.Publish2 (RoomName, Msg, ...)
Am I wrong?
Currently (for centuries) I'm trying to develop an online multiplayer turn-based game.
I know MQTT not so much, but I can not see great advantages in using it instead of WebSockets.
The only advantage I see is that if a player performs an action, using the websockets I have to write a for-next loop on "players objects" to send a message, instead with MQTT I could write a single line of code, like:
client.Publish2 (RoomName, Msg, ...)
Am I wrong?