WEB SOCKET SIMULATION USING NODE.JS AND BACKBONE.JS
A web socket is opened in the backend in port number 8001.
JSON data is formed in the backend and placed in the web socket.
The web socket is listening in the port 8001 using WebSocket.
When new data is added, it is added into the collection using backbone.js.
$ npm install;
Open the terminal to start the websocket :
$ npm start;
Open another window and start a simple server :
$ npm run server;
Open Chrome and go to :
- Backend - node.js
- Frontend - backbone.js
- npm
Divya Gupta