Documents for @litert/xxl-job-integration / Listener/NodeHttp / create
Function: create()
create(
executor
,listenOpts
):Promise
<Server
<typeofIncomingMessage
, typeofServerResponse
>>
Defined in: src/lib/Listener/NodeHttp.ts:237
Create a new HTTP server, and bind it to the given executor manager.
Parameters
executor
The executor to bind the server to.
listenOpts
The options for creating the server listener.
Returns
Promise
<Server
<typeof IncomingMessage
, typeof ServerResponse
>>
The created HTTP server instance. Don't forget to listen on the error
event of the server.