twitcheasy-twitch-bottwitch-authtwitch-auth-tmitwitch-chat-clienttwitch-eventsubtwitch-pubsub-clienttwitch-webhooks
Welcome

EnvPortAdapter

A connection adapter that reads the port to listen on from the environment.

Constructor

new EnvPortAdapter(options)

Creates a new environment port connection adapter.

ParameterTypeRequiredDefaultDescription
optionsEnvPortAdapterConfignone
options.hostNamestringnone

The host name the reverse proxy is available under.

options.portnumbernone

The port on which the reverse proxy is available.

options.variableNamestringnone

The environment variable name the adapter should get the port from.