style
This commit is contained in:
@@ -24,6 +24,7 @@ class ChatConsumer(WebsocketConsumer):
|
||||
# Receive message from WebSocket
|
||||
def receive(self, text_data):
|
||||
# Send message to room group
|
||||
print(text_data)
|
||||
async_to_sync(self.channel_layer.group_send)(
|
||||
self.room_group_name,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user