Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DJWOMS committed Aug 1, 2021
1 parent b2f504d commit 4eb8d4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Django video chat
# Django video chat (Demo)

<a href="https://www.youtube.com/c/DjangoSchool">
<img align="left" alt="YouTube" width="22px" src="https://raw.githubusercontent.com/peterthehan/peterthehan/master/assets/youtube.svg" />
Expand Down
11 changes: 6 additions & 5 deletions src/web_rtc/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ def disconnect(self, code):
pass

def receive(self, text_data):
text_data_json = json.loads(text_data)
data = text_data_json['data']
# text_data_json = json.loads(text_data)
# data = text_data_json['data']
pass

def chat_message(self, event):
self.send(text_data=json.dumps(event))
Expand Down Expand Up @@ -63,9 +64,9 @@ async def disconnect(self, close_code):
async def receive(self, text_data):
data_json = json.loads(text_data)
print("#######", data_json)
message = data_json.get('message')
action = data_json.get('action')

# message = data_json.get('message')
# action = data_json.get('action')
#
# if action == 'call':
# channel_name, res_data = await self.call(message)
# await channel_layer.send(channel_name, res_data)
Expand Down

0 comments on commit 4eb8d4c

Please sign in to comment.