-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Waiting room notification implementation
- Loading branch information
1 parent
8110b09
commit 82649ee
Showing
6 changed files
with
180 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
from django.urls import re_path as url | ||
from chat.consumers import ChatConsumer, ChatConsumerStatus, ChatConsumerCurrentStatus | ||
from chat.consumers import * | ||
|
||
websocket_urlpatterns = [ | ||
|
||
# Checks the status ( typing/not typing) of the user | ||
url('ws/chat/currentstatus/', ChatConsumerCurrentStatus.as_asgi()), | ||
|
||
# Check the status (online/offline) of the user | ||
url('ws/chat/status/', ChatConsumerStatus.as_asgi()), | ||
|
||
# Handle the communication between the users | ||
url('ws/chat/', ChatConsumer.as_asgi()), | ||
|
||
# Notifies a user, if any user is waiting for a chat | ||
url('ws/notify/', ChatConsumerNotify.as_asgi()), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters