Commit Graph

10 Commits

Author SHA1 Message Date
Sebastian Lohff 2a0648bcd5 server: send leave to client if they want to leave
When we restart the signal server, the client might reconnect and still
think it has state (i.e. is on a frequency). We should fix this in the
client, but meanwhile we can just send out a leave to a client if they
request to leave a frequency, even if they are not currently on a
frequency.
2025-05-11 01:35:14 +02:00
Sebastian Lohff 024160c169 server: migrate to logging
Timestamps for every print, will make debugging latency issues easier,
maybe.
2025-05-11 01:35:09 +02:00
Sebastian Lohff 615840ac9f server: use websocket's own broadcast method()
I hope this will reduce latency. Initial tests looked a bit better but
not great.
2025-05-11 00:15:31 +02:00
Sebastian Lohff bdea597057 Autoconnect, reconnect, connection display
We can now autoconnect via parameter on web, e.g. `freq=430.200`, which
then autoconnects to that frequency, creating it when it is not already
created. We also now reconnect on connection failure and display the
connection state down below.
2025-05-10 20:32:19 +02:00
Sebastian Lohff 9d4b72d85f CW server: send out messages in parallel
We now send out messages to all participants at the same time (or more
or less, as asyncio permits). To not fail in case we can't send the
message to one player, we ignore send-exceptions in these occasions and
hope that the `for data in self.websocket` in _handle_client() will
throw an error and kick the client out of our game.
2025-05-10 20:32:19 +02:00
Sebastian Lohff 35d8abb2a9 MP: Logging, test js parameters (broken) 2025-05-10 20:32:19 +02:00
Sebastian Lohff 1f6c534b1a Working Multiplayer
...now with a GUI Theme! Players can leave a room as well. Actually
usable on mobile!
2025-05-10 20:32:19 +02:00
Sebastian Lohff a0ee2491dd External multiplayer server test 2025-05-10 20:31:46 +02:00
Sebastian Lohff 0bd80b400b Further multiplayer progress (still broken) 2025-05-10 20:19:06 +02:00
Sebastian Lohff 9442e3cdfb First (non-functional) multiplayer test 2025-04-24 15:44:50 +02:00