Using different endpoints for Receiving and Sending messages #1505
Unanswered
angadsinghsandhu
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have been working on an Django API that would connect to a mobile app frontend. I was searching a way to implement personal chats and stumbled upon issue #175 ,as suggested I have decided to create groups for everyone to receive their personal messages eg:
--/chat/recieve/<group_name>
And to send the message to someone I use a different endpoint eg:
--/chat/personal/<sender_group_name>/<reciever_group_name>
What is the best way to switch between these endpoints so that I don't loose any data that is sent to a user when he is send a message to someone else and also to avoid bottlenecks.
Beta Was this translation helpful? Give feedback.
All reactions