What should I do if I want to send `self.channel_layer.group_send` immediately?

2024-01-11 Thread Kazuki Nagayama
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"}

Re: What should I do if I want to send `self.channel_layer.group_send` immediately?

2024-01-14 Thread Kazuki Nagayama
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): >>

Re: What should I do if I want to send `self.channel_layer.group_send` immediately?

2024-01-15 Thread Kazuki Nagayama
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