Also add infos if client reconnects
This commit is contained in:
parent
0a16feb5d5
commit
cd84e90583
1 changed files with 11 additions and 1 deletions
|
@ -938,7 +938,17 @@ class Server:
|
||||||
config=DEFAULT_CONFIG | data["config"],
|
config=DEFAULT_CONFIG | data["config"],
|
||||||
)
|
)
|
||||||
await self.sio.enter_room(sid, room)
|
await self.sio.enter_room(sid, room)
|
||||||
await self.sio.emit("client-registered", {"success": True, "room": room}, room=sid)
|
await self.sio.emit(
|
||||||
|
"client-registered",
|
||||||
|
{
|
||||||
|
"success": True,
|
||||||
|
"room": room,
|
||||||
|
"queue": self.clients[room].queue,
|
||||||
|
"recent": self.clients[room].recent,
|
||||||
|
"waiting_room": self.clients[room].waiting_room,
|
||||||
|
},
|
||||||
|
room=sid,
|
||||||
|
)
|
||||||
await self.send_state(self.clients[room], sid)
|
await self.send_state(self.clients[room], sid)
|
||||||
else:
|
else:
|
||||||
logger.warning("Got wrong secret for %s", room)
|
logger.warning("Got wrong secret for %s", room)
|
||||||
|
|
Loading…
Add table
Reference in a new issue