mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 11:19:15 +02:00
Founndations for real-time event serialization/subscription/broadcasting
This commit is contained in:
parent
fd7c1e5dd8
commit
dd5881f2c6
6 changed files with 127 additions and 0 deletions
5
api/funkwhale_api/common/channels.py
Normal file
5
api/funkwhale_api/common/channels.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from asgiref.sync import async_to_sync
|
||||
from channels.layers import get_channel_layer
|
||||
|
||||
channel_layer = get_channel_layer()
|
||||
group_send = async_to_sync(channel_layer.group_send)
|
Loading…
Add table
Add a link
Reference in a new issue