Carbon
Plugins/Gateway Forwarder/Interfaces

GatewayForwarderPluginOptions

Extends

Properties

PropertyTypeDescriptionInherited from
eventFilter?(event) => booleanThis is a custom function you can provide that will filter events. If this function is present, the plugin will only process events that return true.GatewayPluginOptions.eventFilter
intentsnumberThe intents to use for the clientGatewayPluginOptions.intents
privateKeystringThe ed25519 private key in PEM format, used to sign forwarded events. This should include the BEGIN/END markers. When loading from an environment variable, the newlines can be escaped (\n). For instructions on generating keys and setting up the forwarder, see the documentation at: https://carbon.buape.com/plugins/gateway-forwarder-
reconnect?objectThe reconnect optionsGatewayPluginOptions.reconnect
reconnect.baseDelay?numberThe base delay between reconnect attempts-
reconnect.maxAttempts?numberThe maximum number of reconnect attempts-
reconnect.maxDelay?numberThe maximum delay between reconnect attempts after it scales exponentially-
shard?[number, number]The shard to connect to [shard_id, num_shards]GatewayPluginOptions.shard
url?stringThe URL of the gateway to connect toGatewayPluginOptions.url
webhookUrlstringThe URL to forward webhook events to. Typically this is your base URL in the client, and then /events-

On this page