TwurpleAuthenticationGetting dataExamplesFAQMigration

DirectConnectionAdapter

A WebHook connection adapter that enables a direct connection.

Overview

Requires the server to be directly available to the internet.

Constructor

new DirectConnectionAdapter(options)

Creates a new simple WebHook adapter.

ParameterTypeRequiredDefaultDescription
optionsDirectConnectionAdapterConfignonesee below
options.hostNamestringnone

The host name the server is available under.

options.sslCertEventSubHttpListenerCertificateConfignone

The SSL keychain that should be used to make the server available using a secure connection.

options.sslCert.certstringnone

Your full SSL certificate chain, including all intermediate certificates.

options.sslCert.keystringnone

The private key of your SSL certificate.

Methods

updateSslCertificate(ssl)

Updates the SSL certificate, for example if the old one is expired.

ParameterTypeRequiredDefaultDescription
sslEventSubHttpListenerCertificateConfignone

The new certificate data.

ssl.certstringnone

Your full SSL certificate chain, including all intermediate certificates.

ssl.keystringnone

The private key of your SSL certificate.

Return type: void