Using nodejs and websockets to build chat service