Update restSocket.js