HTTPReceiver
Defined in: src/receivers/HTTPReceiver.ts:128
Receives HTTP requests with Events, Slash Commands, and Actions
Implements
Constructors
Constructor
new HTTPReceiver(__namedParameters): HTTPReceiver;
Defined in: src/receivers/HTTPReceiver.ts:173
Parameters
__namedParameters
Returns
HTTPReceiver
Properties
installer?
optional installer?: InstallProvider;
Defined in: src/receivers/HTTPReceiver.ts:147
requestListener
requestListener: RequestListener;
Defined in: src/receivers/HTTPReceiver.ts:143
Methods
init()
init(app): void;
Defined in: src/receivers/HTTPReceiver.ts:264
Parameters
app
Returns
void
Implementation of
start()
Call Signature
start(port): Promise<Server<typeof IncomingMessage, typeof ServerResponse>>;
Defined in: src/receivers/HTTPReceiver.ts:268
Parameters
port
number
Returns
Promise<Server<typeof IncomingMessage, typeof ServerResponse>>
Implementation of
Call Signature
start(port): Promise<Server<typeof IncomingMessage, typeof ServerResponse>>;
Defined in: src/receivers/HTTPReceiver.ts:269
Parameters
port
string
Returns
Promise<Server<typeof IncomingMessage, typeof ServerResponse>>
Implementation of
Receiver.start
Call Signature
start(portOrListenOptions, serverOptions?): Promise<Server<typeof IncomingMessage, typeof ServerResponse>>;
Defined in: src/receivers/HTTPReceiver.ts:270
Parameters
portOrListenOptions
string | number | ListenOptions
serverOptions?
ServerOptions<typeof IncomingMessage, typeof ServerResponse>
Returns
Promise<Server<typeof IncomingMessage, typeof ServerResponse>>
Implementation of
Receiver.start
Call Signature
start(portOrListenOptions, httpsServerOptions?): Promise<Server<typeof IncomingMessage, typeof ServerResponse>>;
Defined in: src/receivers/HTTPReceiver.ts:271
Parameters
portOrListenOptions
string | number | ListenOptions
httpsServerOptions?
ServerOptions
Returns
Promise<Server<typeof IncomingMessage, typeof ServerResponse>>
Implementation of
Receiver.start
stop()
stop(): Promise<void>;
Defined in: src/receivers/HTTPReceiver.ts:359
Returns
Promise<void>