0.2.1 • Published 4 years ago

flex-channel-janitor v0.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Flex Channel Janitor

Cleans up any lingering Proxy sessions that have lost their associated tasks.

Note: If you want Flex to do this for you automatically just enable janitor on your Flex Flow. For more information see here

Usage

flex-channel-janitor --account-sid AC46f5800f249d224c431c937528128afb --auth-token 73286632772f1fc262a05fbgaaj6h2de
  ✔ Fetch Flex resources
  ✔ Find stale chat sessions. Found 60 candidates
  ✔ Clean up stale sessions. 60 done
DONE

Install

  1. Get your account credentials from twilio.com/console
  2. Clone and run directly or install via npm.

Via NPM

npm install -g flex-channel-janitor
flex-channel-janitor --account-sid $accountSid --auth-token $authToken

Via github

git clone https://github.com/jtgi/flex-channel-janitor.git
cd flex-channel-janitor
npm install
./bin/flex-channel-janitor --account-sid $accountSid --auth-token $authToken