1 points · by mr_donk · 9y ago · 3 comments
You can check out the game here: https://electrollama.net/alphaparty
I wrote a post about configuring Nginx to work with SSE when used as a reverse proxy for node (this was a bit tricky... my server worked fine when connecting straight to node, but not through a proxy without some monkeying around) https://www.electrollama.net/blog/2017/6/22/html-sse-with-no...
Also, my first post on HN, despite being a lurker here for over 5 years! I apologize if I've formatted this wrong...
A key thing to me is that sse can be polyfilled for older browsers. Websockets cannot.
It's using SSE as well... there are a few ways to do it, here's an example https://github.com/neilco/EventSource/ I'm doing something quite similar in swift, had I known about this, I probably would have just dropped it in!
Every player uses their own phone and that part is just straight JavaScript.