-
-
Notifications
You must be signed in to change notification settings - Fork 46
[feature] Add websocket endpoint for all location updates #191 #193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
pandafy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work @dee077! We need to refine this further.
django_loci/channels/base.py
Outdated
| from django.core.exceptions import ValidationError | ||
|
|
||
| location_broadcast_path = "ws/loci/location/<uuid:pk>/" | ||
| all_location_broadcast_path = "ws/loci/location/all/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of all, can we use common_location_broadcast_path?
We can also follow the REST naming convention, but we will need to do that in backward compatible fashion. We can create a separate issue for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!
location_broadcast_path = "ws/loci/locations/uuid:pk/"
common_location_broadcast_path = "ws/loci/locations/"
also made location_broadcast_path consistent by making location to locations
Let me know if it is not required!
Implemented a new websocket endpoint 'location/all/' to handle updates for all locations simultaneously. Fixes #191
9e8b063 to
d58772f
Compare
Implemented a new websocket endpoint 'location/all/' to handle updates for all locations simultaneously.
Fixes #191
Checklist
Reference to Existing Issue
Closes #191
Description of Changes
ws/loci/location/all/Screen Recording
Screencast.from.2025-11-07.17-47-18.webm