gathertown / api-examples

documentation: https://gathertown.notion.site/Gather-HTTP-API-3bbf6c59325f40aca7ef5ce14c677444
29 stars 8 forks source link

[question] Is the a way to know who is online in the space? #3

Open helen-fornazier opened 9 months ago

helen-fornazier commented 9 months ago

Hey, thanks for this examples, I was reading the docs here and I didn't understand if the getEmailGuestlist would return only online people, or only guests and not members. I was wonder if you know a way to see who is online or not at a given moment.

thanks!

npfoss commented 9 months ago

Guest list is actually for the list of who has access, for spaces where access is restricted by email. There's no way to tell who's online with the http API, you have to use the ws API, like this: https://github.com/gathertown/mod-basic-player-listener (look at game.players directly instead of listening for move events)

Also, the forum (forum.gather.town) is a better place to ask questions like this since more people will see it!

helen-fornazier commented 9 months ago

Thanks, I didn't know about the ws api (I guess ws stands for webserver?) I see now there are tons of things we can do using thie Game API http://gather-game-client-docs.s3-website-us-west-2.amazonaws.com/classes/Game.html

Do you know if there is any requirement to use it? Or can I use it in the free version? (I guess I should post this question in the forum, thanks anyway)

npfoss commented 9 months ago

ah sorry -- it's ws for websocket. it's very experimental right now but yes anyone can use it!