updates the websocket server on client.js