The backend should accept message from the front-end for questions as they're being typed.
Assign a temporary, unique question ID
Un-submitted questions that are being typed (and sending messages) should get an ID but not saved to the DB. Multiple questions can be sending messages up at the same time, so the front-end needs a way to differentiate between them.
Don't send messages to users generated from their own question.
Abandoned question
The front-end can send a message the the user abandoned the question. Back-end should send a message to everyone else with the question ID, saying that it has been abanonded so the front-end can stop showing it.
Realtime question messages
The backend should accept message from the front-end for questions as they're being typed.
Assign a temporary, unique question ID
Un-submitted questions that are being typed (and sending messages) should get an ID but not saved to the DB. Multiple questions can be sending messages up at the same time, so the front-end needs a way to differentiate between them.
Don't send messages to users generated from their own question.
Abandoned question
The front-end can send a message the the user abandoned the question. Back-end should send a message to everyone else with the question ID, saying that it has been abanonded so the front-end can stop showing it.