ajanata / PretendYoureXyzzy

A web clone of the card game Cards Against Humanity.
https://pretendyoure.xyz/zy
BSD 2-Clause "Simplified" License
1.23k stars 396 forks source link

Server discovery API #180

Closed devgianlu closed 6 years ago

devgianlu commented 6 years ago

Since the main server are down many people started their own servers. It would be nice if each server could communicate to a small API that it is alive so that other players can connect to it. This way we would have a network made of self hosted servers that will never go down, like Torrent does.

Just an idea, but I'll probably start developing it soon on my fork.

devgianlu commented 6 years ago

Fully implemented on my fork along with the API. To list available servers go here.

ajanata commented 6 years ago

That'd be really nice to have in mainline. I do want to update the server landing page to have hosted servers listed, though I'm not sure when I'll have time to do much for a week or so...

ajanata commented 6 years ago

Additionally, some sort of way to indicate what version of the server is running would be nice, even if it's just the git commit hash (which should already be in the pyx.build property, I think).

I'll probably work on something similar when I have time.

devgianlu commented 6 years ago

If you look at my fork, I've made quite some work, but also some breaking changes.

I know this is a lot of stuff to merge, but I think these changes would really help the server spread in cases like this one.

ajanata commented 6 years ago

Cool. I'll take a look this weekend.