websocket for a chatroom and chat for ajax