Forget it
------------
I try to summarize. I collected a lot of information; they are so many that I'm almost to the start point.
Moreover, our Guru is rightly resting; moreover, he can not solve all my problems!
It seems that I want to get the Moon, but this is certainly achievable, if the ideas were completely clear!
As if that were not enough, from the initial idea to create a mobile interactive multiplayer game, the possibility that it could be accessible also via web browser came into my mind! If I start to develop this specifically for mobile then I would have big problems to adapt it for web/browsers.
----
Given that I do not understand the difference between these two statements:
srvr.AddHandler("/SigninHelper", "SigninHelper", False)
in which "/SigninHelper" is considered a path as part of a URL
srvr.AddWebSocket("/ws", "WebAppLogin")
In this line, which is part of
this example of rwblinn, "/ws" is NOT a part of a URL.
---
I try to describe how this sort of general architecture should work, which I guess could be usefull for many members.
If I understand correctly, when all this would work on my pc/b4jserver, I could "move" all on a VPS.
1) a user, with my app on his smartphone, connects to log in (not a web page)
For this, the app should send two IDs, one of the app and one of the device;
2) he can create/edit his gamer profile;
3) can choose a room to play in, based on the characteristics of the rooms listed (by the server) and/or the presence of friends in the rooms;
4) entered the room, when the room will have the minimum number of players, the game will start;
5) during the game, each player will perform an action, which must be visible (receipt) to all the other players/devices;
6) at the end of the game, various calculations and, if desired, leaving the room.
Login (authentication): should/could I use HTTPS?
But I've read this Erels' sentence:
Filters do not apply to web sockets. You can use WebSocket.Secure to make sure that a secure connection has been made (this will be the case if the current request is a https request, unless someone has tampered the JavaScript code).
So I do not know what to choose.
For all other steps, should I always use WebSockets? Even to list the rooms from the database, for example?
And how many WebSockets I need? And they should be global variables? And what role have threads in all this?
Too bad that in Italy there are no more mantal hospitals, because pretty soon I would be ready for them