Start with the problem
When one player makes a move, everyone else needs to see the new game state. I used WebSockets to send updates while keeping game state and HTML rendering on the server.
Projects / paused
A multiplayer party game for the browser, built with Go, HTMX, and Postgres. The project is paused, but it’s still a useful example of building a real-time app with server-rendered HTML.
When one player makes a move, everyone else needs to see the new game state. I used WebSockets to send updates while keeping game state and HTML rendering on the server.
Why I picked this stack and where a WebSocket-based game differs from a typical web app.
How I used HTMX and server-rendered fragments in Banter Bus and LettuceGo.