django = 5..0.1
channels = 4.0.1
I have code like below.
```python
class ChatConsumer(AsyncWebsocketConsumer):
async def receive(self, text_data):
await self.channel_layer.group_send(
roomId, {"type": "chat_message", "message":
"first_chatMessage"}
January 12, 2024 12:19:45 AM CST, Kazuki Nagayama <
> k_nag...@dynaxt.co.jp> wrote:
>
>> django = 5..0.1
>> channels = 4.0.1
>>
>> I have code like below.
>>
>> ```python
>> class ChatConsumer(AsyncWebsocketConsumer):
>>
is:
>
> self.send(text_data=json.dumps({"type": "chat_message", "message":
> "first_chatMessage"}))
>
> On Mon, 15 Jan 2024, 6:57 am Kazuki Nagayama,
> wrote:
>
>>
>> That's exactly what!
>> Do you know where this
3 matches
Mail list logo