Skip to content
Snippets Groups Projects
Forked from funkwhale / funkwhale
7677 commits behind the upstream repository.
channels.py 226 B
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)
group_add = async_to_sync(channel_layer.group_add)