Add todo
This commit is contained in:
parent
c2e834a67a
commit
fce7419c55
@ -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'})
|
||||
|
Loading…
x
Reference in New Issue
Block a user