SWPP / cid-backend

μBot backend based on Django
MIT License
0 stars 2 forks source link

Implemented Chat View #7

Closed lameinthebox closed 6 years ago

lameinthebox commented 6 years ago

I've implemented chat view. A (signed-in) user can POST chat messages to the server at /chatbot/chat/ with text given as payload. When the server receives messages, it forks a new process. The parent process saves the message in db while child process communicates with chatscript and creates appropriate response message. GET request returns all the messages in which the user is involved. screenshot from 2018-10-26 02-26-05

Of course, un-authenticated users and other users cannot access the user's chatlog. screenshot from 2018-10-26 02-27-30