GalDear / Sababa

0 stars 0 forks source link

Chat - conversation view - client #6

Open danielgeo96 opened 2 years ago

danielgeo96 commented 2 years ago

/api/get_messages # user1, user2, match_id - sync chat history with the server. /api/send_message # sender , match_id , message . return 1 in case of success -1 in case of error.

display all messages and time. display text box to write a message. save chat history in local storage. back button - return to chat view.

GalDear commented 2 years ago

/api/send_message POST EXAMPLE { "match_id":1, "message":{ "sender_id": 1, "data":"how are you" } }