function sendMessage() {
	socket.emit("message", ROOM_ID, text.value, myUsername);
	text.value = "";
	messageContainer.scrollTop = messageContainer.scrollHeight;
}
//send a message to the room. clear the message box after sending
send a message to the room. clear the message box after sending
send a message to the room . clear the message box after sending
function sendMessage() {
	socket.emit("message", ROOM_ID, text.value, myUsername);
	text.value = "";
	messageContainer.scrollTop = messageContainer.scrollHeight;
}
function sendMessage ( ) { socket . emit ( "message" , ROOM_ID , text . value , myUsername ) ; text . value = "" ; messageContainer . scrollTop = messageContainer . scrollHeight ; }
send a message to the room.
send a message to the room .