In [1]: import channels.layers In [2]: from asgiref.sync import async_to_sync In [3]: async_to_sync(channel_layer.send)('test_channel', ...
確定! 回上一頁