{"username":"blenderdumbass", "room":"Game", "userId":null}
userId being null it will assign a random string of characters as the userId which it will send back like so:
↩ Reply
{"userId":"8dhj579fn30djk86"}
userId will then be used to identify that any further request comes from the same player. So for example if suddenly location data comes in and the userId is 8dhj579fn30djk86, the server will understand that this player changed position in the game. And will know to queue this information to send it to any other player.
↩ Reply
main() function in the Main_Update.py file was 1683 lines of code long and contained way too many things in it. At the moment, the same function is down to 641 lines of code. This is still way too much stuff in the main() but this is a hell of a lot of reduction.