Updated mongoose and fixed initial websocket connecte to client (nw)