git clone git@github.com:yhc3l-java/websocket-angular-textarea.git
cd websocket-angular-textarea
npm install
node index.js
Open a couple of browsers and surf to http://localhost:8080 . The text area should sync between the two browsers.
Code to the server is in index.js
Code for the client is in the public folder.
public/js/factories.js -> The file with the websocket connection. It transforms the websocket event to an angular event, that the controller listens to.