Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
helen-fornazier opened this issue Jan 8, 2024 · 3 comments
Open

Comments

@helen-fornazier
Copy link

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
Copy link
Contributor

npfoss commented Jan 8, 2024

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
Copy link
Author

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
Copy link
Contributor

npfoss commented Jan 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants