This commit is contained in:
Paul Brinkmeier 2023-01-17 19:29:10 +01:00
parent c2e834a67a
commit fce7419c55

View File

@ -117,6 +117,8 @@ class GlebbyState:
self.next_client_id += 1
return client_id
# TODO: Instead of using clients_lock, synchronize clients throught incoming_messages
# Make add_client and remove_client simply push events into the queue
def add_client(self, sock):
client_id = self._get_next_client_id()
self.broadcast(client_id, {'type': 'join'})