Answers for "Send message to single user"

0

Send message to single user

from channels.layers import get_channel_layer

channel_layer = get_channel_layer()
await channel_layer.send("channel_name", {
    "type": "chat.message",
    "text": "Hello there!",
})
Posted by: Guest on July-21-2021

Code answers related to "Send message to single user"

Browse Popular Code Answers by Language