add http and ws code in app.js