This example connects to FeatBit, evaluates a flag locally, sends a custom event, flushes, and closes the SDK.
cd examples/Console
bundle install
FEATBIT_ENV_SECRET="..." \
FEATBIT_FLAG_KEY="game-runner" \
bundle exec ruby app.rbOptional variables:
FEATBIT_STREAMING_URLdefaults towss://app-eval.featbit.coFEATBIT_EVENT_URLdefaults tohttps://app-eval.featbit.coFEATBIT_USER_KEYdefaults toconsole-user