When asking the server to return all the users that have joined a room, you have to pass the server the roomId like this:
{"action": "getUsersInRoom", "roomId": "ExampleRoom"}
It then returns an array of users, but this array can't be associated with the request, since it only gives u the usernames:
["Anderer Daniel","Bot","Daniel","Hackerman","Jan-Robin","amilabell","amilabell2","dhbw","marco","someoneelse","supersayavic","the System","vic"]
A way to identify the room would be nice, like returning an object like this:
{"roomId": "ExampleRoom", "users": "["Anderer Daniel","Bot","Daniel","Hackerman","Jan-Robin","amilabell","amilabell2","dhbw","marco","someoneelse","supersayavic","the System","vic"]"}
When asking the server to return all the users that have joined a room, you have to pass the server the roomId like this:
{"action": "getUsersInRoom", "roomId": "ExampleRoom"}
It then returns an array of users, but this array can't be associated with the request, since it only gives u the usernames:["Anderer Daniel","Bot","Daniel","Hackerman","Jan-Robin","amilabell","amilabell2","dhbw","marco","someoneelse","supersayavic","the System","vic"]
A way to identify the room would be nice, like returning an object like this:
{"roomId": "ExampleRoom", "users": "["Anderer Daniel","Bot","Daniel","Hackerman","Jan-Robin","amilabell","amilabell2","dhbw","marco","someoneelse","supersayavic","the System","vic"]"}