function to send chat messages
function to handle creating rooms