- [Install Node.js and NPM]
- Clone this repo to your machine
npm install
node server.js
node client.js
node websocket-server.js
- Open
client.html
in your web browser
- Sign up for a free PubNub Account and insert your free API keys into
pubnub-client1.js
andpubnub-client2.js
- Open 2 command line windows
npm install
if you haven't alreadynode pubnub-client1.js
- In the other window...
node pubnub-client2.js