Propagate configuration on load via downloads socket

This commit is contained in:
James Woglom 2022-08-29 20:27:34 -04:00
parent bbfde99aeb
commit 4a9f55adda
4 changed files with 24 additions and 14 deletions

View file

@ -99,6 +99,7 @@ async def delete(request):
@sio.event
async def connect(sid, environ):
await sio.emit('all', serializer.encode(dqueue.get()), to=sid)
await sio.emit('configuration', serializer.encode(config), to=sid)
@routes.get(config.URL_PREFIX)
def index(request):