{"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