Overview
Methods
Requires the server to be directly available to the internet.
Constructor
new DirectConnectionAdapter(options)
Creates a new simple WebHook adapter.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
options | DirectConnectionAdapterConfig | none | see below | |
options.hostName | string | none | The host name the server is available under. | |
options.sslCert | EventSubHttpListenerCertificateConfig | none | The SSL keychain that should be used to make the server available using a secure connection. | |
options.sslCert.cert | string | none | Your full SSL certificate chain, including all intermediate certificates. | |
options.sslCert.key | string | none | The private key of your SSL certificate. |
Methods
updateSslCertificate(ssl)
Updates the SSL certificate, for example if the old one is expired.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
ssl | EventSubHttpListenerCertificateConfig | none | The new certificate data. | |
ssl.cert | string | none | Your full SSL certificate chain, including all intermediate certificates. | |
ssl.key | string | none | The private key of your SSL certificate. |
Return type: void