Be sure to insert your PubNub API Keys in each of the HTML files in this repository.
const pubnub = new PubNub({
publishKey : 'YOUR PUBNUB PUBLISH KEY HERE',
subscribeKey : 'YOUR PUBNUB SUBSCRIBE KEY HERE'
});
PubNub accounts are free up to 1 million transactions per month.
Open any of the HTML files in your favorite web browser. No need to run a web server. Use the file URI scheme in your browser's address input to navigate to the HTML file on your computer.
Check out the PubNub Quickstarts for video commentary of this code in action.