mongoose + websocket + client side