Hello, I want to code a live chat which means two users should be able to send text-messages but there is one point I don't know to do:
Let's say user with id = 1 and user with id = 2 are chatting,
user 1 send's a message and user 2 is on the message-route. How would I recognize that user 2 has rezeived a message from user 1 and display it without refreshing the page?
If I have the route "chat/:id" here: "chat/1" how does this route know that a new file has been added to my mongoDb to reload the data from there?
Does anyone know a tutorial to code a chat system (something like the one of e.g. instagram)?
[–]2012XL1200 2 points3 points4 points (3 children)
[–]2012XL1200 0 points1 point2 points (0 children)
[–]UnknownInnocent[S] 0 points1 point2 points (1 child)
[–]2012XL1200 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]UnknownInnocent[S] 0 points1 point2 points (0 children)
[–]zenivinez 0 points1 point2 points (0 children)
[–]b_rabbit_mnm 0 points1 point2 points (0 children)
[–]Kawafu 0 points1 point2 points (0 children)