PubNub MQTT Client Subscriber
- Requests git
sudo yum install git
- Requires Node.js to run if installing
curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -
sudo yum install -y nodejs
- Rename config-default.json to config.json
- update the keys prior to running
- update the number of connections and ramp time in seconds
{
"subscribeKey":"sub-c-xxxxxxxxxxxxxxxxxxxxx",
"connections":"5",
"ramp":"5"
}
git clone https://github.com/cdelorenzo/ao-client-pubnub.git
cd ao-client-pubnub
npm install
node subscribe.js
or use the run
# If you want to execute 4 instances you can use the run helper
./run.sh 4