This chat is losely based on kimutaiRop's Graphene Chat, and is still a work in progress!
I wanted a One to One chat system for a React Based front end/ Android App.
createChat( userName: "jatin" ) {
room {
id
name
userId{
username
}
target{
username
}
}
}
}
onNewMessage(chatroom:"rahul"){
message{
roomId {
id
}
userId {
id
username
}
content
timestamp
read
}
}
}
sendMessage( message: "This is a message", roomId: 3 ) {
message{
roomId{
lastModified
}
userId{
username
}
content
timestamp
read
}
}
}
...You can find more in the explorer.
pip install -r requirements.txt
python manage.py runserver
let me know if u find any bugs, or if you have anything that can be done better. Happy to help!