rebuild use socket.io client and mongodb