- Send custom message on message received
- Send custom message periodically
- Disconnect from clients
Use this script to (re)set the app in an idempotent way on Heroku.
export HEROKU_APP=ws-anywhere
heroku apps:destroy --confirm $HEROKU_APP
heroku create $HEROKU_APP
heroku addons:create mongolab
heroku git:remote
git push heroku master
heroku ps:scale web=1