HTTPReceiver
Defined in: src/receivers/HTTPReceiver.ts:129
Receives HTTP requests with Events, Slash Commands, and Actions
Implements
Constructors
Constructor
new HTTPReceiver(__namedParameters): HTTPReceiver;
Defined in: src/receivers/HTTPReceiver.ts:176
Parameters
__namedParameters
Returns
HTTPReceiver
Properties
installer?
optional installer?: InstallProvider;
Defined in: src/receivers/HTTPReceiver.ts:148
requestListener
requestListener: RequestListener;
Defined in: src/receivers/HTTPReceiver.ts:144
Methods
init()
init(app): void;
Defined in: src/receivers/HTTPReceiver.ts:269
Parameters
app
Returns
void
Implementation of
start()
Call Signature
start(port): Promise<Server<typeof IncomingMessage, typeof ServerResponse>>;
Defined in: src/receivers/HTTPReceiver.ts:273
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:274
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:275
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:276
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:364
Returns
Promise<void>