complete src code of chatRoom with ui server manage