Founndations for real-time event serialization/subscription/broadcasting

This commit is contained in:
Eliot Berriot 2018-03-01 20:37:48 +01:00
parent fd7c1e5dd8
commit dd5881f2c6
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 127 additions and 0 deletions

View 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)